@cryptotaxi247 / kubo / commits / fb05a5fbb

trying to debug random test failures

License: MIT Signed-off-by: Jeromy <why@ipfs.io>

Jeromy committed Sep 19, 2016 at 19:37 UTC fb05a5fbb89154183201872b6f26f6bb259bb355
2 files changed +8 -3
test/sharness/t0040-add-and-cat.sh
+2 -1
@@ -98,7 +98,8 @@ test_add_cat_5MB() {
98 '
99
100 test_expect_success "'ipfs add bigfile' succeeds" '
101 - ipfs add mountdir/bigfile >actual
101 + ipfs add mountdir/bigfile >actual ||
102 + test_fsh cat daemon_err
103 '
104
105 test_expect_success "'ipfs add bigfile' output looks good" '
test/sharness/t0110-gateway.sh
+6 -2
@@ -21,9 +21,13 @@ apiport=$API_PORT
21 # define a function to test a gateway, and do so for each port.
22 # for now we check 5001 here as 5002 will be checked in gateway-writable.
23
24 -test_expect_success "GET IPFS path succeeds" '
24 +test_expect_success "Make a file to test with" '
25 echo "Hello Worlds!" >expected &&
26 - HASH=$(ipfs add -q expected) &&
26 + HASH=$(ipfs add -q expected) ||
27 + test_fsh cat daemon_err
28 +'
29 +
30 +test_expect_success "GET IPFS path succeeds" '
31 curl -sfo actual "http://127.0.0.1:$port/ipfs/$HASH"
32 '
33