Skip to content

Commit d839ad6

Browse files
authored
refactor(cluster): use rm_retry for state cleanup (#3205)
Replace 'rm -rf' commands with 'rm_retry' function to enhance reliability.
1 parent 1f4c76c commit d839ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cardano_node_tests/cluster_scripts/testnets/start-cluster

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ -e "$SCRIPT_DIR/shell_env" ]; then
3636
source "$SCRIPT_DIR/shell_env"
3737
fi
3838

39-
if ! ( rm -rf "$STATE_CLUSTER" || rm -rf "$STATE_CLUSTER"; ); then
39+
if ! rm_retry "$STATE_CLUSTER"; then
4040
echo "Could not remove existing '$STATE_CLUSTER'" >&2
4141
exit 1
4242
fi

0 commit comments

Comments
 (0)