diff --git a/tests/db_modes_test.sh b/tests/db_modes_test.sh index 6a50fc0ae78..3a7f4467c4f 100755 --- a/tests/db_modes_test.sh +++ b/tests/db_modes_test.sh @@ -48,7 +48,7 @@ run_expect_success() { kill $NODEOS_PID rc=0 wait $NODEOS_PID && rc=$? || rc=$? - if [[ rc -eq 127 || rc -eq 0 ]]; then + if [[ $rc -eq 127 || $rc -eq $NODEOS_PID ]]; then rc=0 fi return $rc