@cryptotaxi247 / kubo / commits / c4f36071d

fix shutdown check in t0023

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Jun 10, 2017 at 11:32 UTC c4f36071da25951b67e4c6b851901e9739add61b
1 file changed +5 -1
test/sharness/t0023-shutdown.sh
+5 -1
@@ -17,7 +17,11 @@ test_expect_success "shutdown succeeds" '
17 '
18
19 test_expect_success "daemon no longer running" '
20 - test_expect_code 1 kill -0 $IPFS_PID
20 + for i in $(test_seq 1 100)
21 + do
22 + go-sleep 100ms
23 + ! kill -0 $IPFS_PID 2>/dev/null && return
24 + done
25 '
26
27 test_launch_ipfs_daemon --offline