Skip to content

Commit

Permalink
Merge pull request #3242 from ipfs/test/repro-random-fail
Browse files Browse the repository at this point in the history
trying to debug random test failures
  • Loading branch information
whyrusleeping authored Sep 21, 2016
2 parents 4db17ae + fb05a5f commit 300187a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/sharness/t0040-add-and-cat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" '
Expand Down
8 changes: 6 additions & 2 deletions test/sharness/t0110-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
'

Expand Down

0 comments on commit 300187a

Please sign in to comment.