Harden test - no -z in busybox
Peter Rabbitson committed
Apr 8, 2020 at 23:29 UTC
f9ae3309783470c2e6d136fcea23c98eba494199
1 file changed
+4
-4
test/sharness/t0054-dag-car-import-export.sh
+4
-4
@@ -16,10 +16,10 @@ reset_blockstore() {
16
ipfsi $1 repo gc &>/dev/null
17
18
test_expect_success "pinlist empty" '
19
- test -z "$( ipfsi $1 pin ls )"
19
+ [ "$( ipfsi $1 pin ls )" = "" ]
20
'
21
test_expect_success "nothing left to gc" '
22
- test -z "$( ipfsi $1 repo gc )"
22
+ [ "$( ipfsi $1 repo gc )" = "" ]
23
'
24
}
25
@@ -33,8 +33,8 @@ do_import() {
33
ipfsi $node dag import "$@"
34
35
rm spin.gc
36
- wait $gc1_pid
37
- wait $gc2_pid
36
+ sleep 3
37
+ kill $gc1_pid $gc2_pid
38
}
39
40
run_online_imp_exp_tests() {