Skip to content

Commit

Permalink
fix: update tar test
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Dec 5, 2022
1 parent 9fc6f79 commit 25ce929
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/sharness/t0122-gateway-tar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ test_expect_success "Add CARs with relative paths to test with" '
'

test_expect_success "GET TAR with relative paths outside root fails" '
curl -o - "http://127.0.0.1:$GWAY_PORT/ipfs/$OUTSIDE_ROOT_CID?format=tar" > curl_output_filename &&
test_should_contain "relative UnixFS paths outside the root are now allowed" curl_output_filename
! curl "http://127.0.0.1:$GWAY_PORT/ipfs/$OUTSIDE_ROOT_CID?format=tar"
'

test_expect_success "GET TAR with relative paths inside root works" '
Expand Down

0 comments on commit 25ce929

Please sign in to comment.