@cryptotaxi247 / kubo / commits / 9563cb29d

t0110: add peerid check

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Sep 12, 2015 at 19:10 UTC 9563cb29d9dee912b8c003ff608e81b5d309b5f1
1 file changed +3 -2
test/sharness/t0110-gateway.sh
+3 -2
@@ -59,8 +59,9 @@ test_expect_success "GET IPFS non existent file returns code expected (404)" '
59
60 test_expect_failure "GET IPNS path succeeds" '
61 ipfs name publish "$HASH" &&
62 - NAME=$(ipfs config Identity.PeerID) &&
63 - curl -sfo actual "http://127.0.0.1:$port/ipns/$NAME"
62 + PEERID=$(ipfs config Identity.PeerID) &&
63 + test_check_peerid "$PEERID" &&
64 + curl -sfo actual "http://127.0.0.1:$port/ipns/$PEERID"
65 '
66
67 test_expect_failure "GET IPNS path output looks good" '