mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 20:07:45 +08:00
trying to debug random test failures
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
parent
f23cd5c84c
commit
fb05a5fbb8
@ -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" '
|
||||
|
||||
@ -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"
|
||||
'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user