Skip to content

Commit

Permalink
Address the feedback: use pre-increment instead of && true
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk authored Jan 14, 2023
1 parent a23dc84 commit 466bc3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-js-xds/scripts/xds_k8s_lb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ main() {
local failed_tests=0
test_suites=("baseline_test" "api_listener_test" "change_backend_service_test" "failover_test" "remove_neg_test" "round_robin_test" "outlier_detection_test")
for test in "${test_suites[@]}"; do
run_test $test || (( failed_tests++ )) && true
run_test $test || (( ++failed_tests ))
done
echo "Failed test suites: ${failed_tests}"
if (( failed_tests > 0 )); then
Expand Down

0 comments on commit 466bc3c

Please sign in to comment.