trying to debug random test failures

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
Jeromy 2016-09-19 19:37:03 -07:00
parent f23cd5c84c
commit fb05a5fbb8
2 changed files with 8 additions and 3 deletions

View File

@ -98,7 +98,8 @@ test_add_cat_5MB() {
'
test_expect_success "'ipfs add bigfile' succeeds" '
ipfs add mountdir/bigfile >actual
ipfs add mountdir/bigfile >actual ||
test_fsh cat daemon_err
'
test_expect_success "'ipfs add bigfile' output looks good" '

View File

@ -21,9 +21,13 @@ apiport=$API_PORT
# define a function to test a gateway, and do so for each port.
# for now we check 5001 here as 5002 will be checked in gateway-writable.
test_expect_success "GET IPFS path succeeds" '
test_expect_success "Make a file to test with" '
echo "Hello Worlds!" >expected &&
HASH=$(ipfs add -q expected) &&
HASH=$(ipfs add -q expected) ||
test_fsh cat daemon_err
'
test_expect_success "GET IPFS path succeeds" '
curl -sfo actual "http://127.0.0.1:$port/ipfs/$HASH"
'