diff --git a/test/sharness/t0110-gateway.sh b/test/sharness/t0110-gateway.sh index 944137668..c15832088 100755 --- a/test/sharness/t0110-gateway.sh +++ b/test/sharness/t0110-gateway.sh @@ -59,8 +59,9 @@ test_expect_success "GET IPFS non existent file returns code expected (404)" ' test_expect_failure "GET IPNS path succeeds" ' ipfs name publish "$HASH" && - NAME=$(ipfs config Identity.PeerID) && - curl -sfo actual "http://127.0.0.1:$port/ipns/$NAME" + PEERID=$(ipfs config Identity.PeerID) && + test_check_peerid "$PEERID" && + curl -sfo actual "http://127.0.0.1:$port/ipns/$PEERID" ' test_expect_failure "GET IPNS path output looks good" '