Skip to content

Commit

Permalink
Fix db_modes_test by doubling the timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
kj4ezj committed Aug 2, 2019
1 parent ef25995 commit 9cb8f2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/db_modes_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ run_nodeos() {
run_expect_success() {
run_nodeos "$@"
local NODEOS_PID=$!
sleep 5
sleep 10
kill $NODEOS_PID
wait $NODEOS_PID
}

run_and_kill() {
run_nodeos "$@"
local NODEOS_PID=$!
sleep 5
sleep 10
kill -KILL $NODEOS_PID
! wait $NODEOS_PID
}
Expand All @@ -62,9 +62,9 @@ run_expect_failure() {
run_nodeos "$@"
local NODEOS_PID=$!
MYPID=$$
(sleep 10; kill -ALRM $MYPID) & local TIMER_PID=$!
(sleep 20; kill -ALRM $MYPID) & local TIMER_PID=$!
trap "kill $NODEOS_PID; wait $NODEOS_PID; exit 1" ALRM
sleep 5
sleep 10
if wait $NODEOS_PID; then exit 1; fi
kill $TIMER_PID
trap ALRM
Expand Down

0 comments on commit 9cb8f2d

Please sign in to comment.