Skip to content

Commit

Permalink
chore(scripts): add retries for gsdk related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Dec 18, 2023
1 parent a48233a commit a59bd7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/src/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ gsdk_test() {
if [ "$CARGO" = "cargo xwin" ]; then
$CARGO test -p gsdk --no-fail-fast "$@"
else
cargo nextest run -p gsdk --profile ci --no-fail-fast "$@"
cargo nextest run -p gsdk --profile ci --no-fail-fast "$@" --retries 3
fi
}

gcli_test() {
if [ "$CARGO" = "cargo xwin" ]; then
$CARGO test -p gcli --no-fail-fast "$@"
else
cargo nextest run -p gcli --profile ci --no-fail-fast "$@"
cargo nextest run -p gcli --profile ci --no-fail-fast "$@" --retries 3
fi
}

Expand All @@ -67,7 +67,7 @@ client_tests() {
if [ "$CARGO" = "cargo xwin" ]; then
$CARGO test -p gclient --no-fail-fast "$@"
else
cargo nextest run -p gclient --no-fail-fast "$@"
cargo nextest run -p gclient --no-fail-fast "$@" --retries 3
fi
}

Expand Down

0 comments on commit a59bd7c

Please sign in to comment.