@cryptotaxi247 / kubo / commits / 09e4224aa

test/sharness: Fixed gateway tests

Matt Bell committed Feb 3, 2015 at 18:28 UTC 09e4224aa71009f2040fb1c1a49f6c9a4c482a4d
1 file changed +6 -6
test/sharness/t0110-gateway.sh
+6 -6
@@ -22,7 +22,7 @@ test_launch_ipfs_daemon
22 test_expect_success "GET IPFS path succeeds" '
23 echo "Hello Worlds!" > expected &&
24 HASH=`ipfs add -q expected` &&
25 - wget "http://127.0.0.1:5001/ipfs/$HASH" -O actual
25 + wget "http://127.0.0.1:5002/ipfs/$HASH" -O actual
26 '
27
28 test_expect_success "GET IPFS path output looks good" '
@@ -34,11 +34,11 @@ test_expect_success "GET IPFS directory path succeeds" '
34 mkdir dir &&
35 echo "12345" > dir/test &&
36 HASH2=`ipfs add -r -q dir | tail -n 1` &&
37 - wget "http://127.0.0.1:5001/ipfs/$HASH2"
37 + wget "http://127.0.0.1:5002/ipfs/$HASH2"
38 '
39
40 test_expect_success "GET IPFS directory file succeeds" '
41 - wget "http://127.0.0.1:5001/ipfs/$HASH2/test" -O actual
41 + wget "http://127.0.0.1:5002/ipfs/$HASH2/test" -O actual
42 '
43
44 test_expect_success "GET IPFS directory file output looks good" '
@@ -48,7 +48,7 @@ test_expect_success "GET IPFS directory file output looks good" '
48 test_expect_failure "GET IPNS path succeeds" '
49 ipfs name publish "$HASH" &&
50 NAME=`ipfs config Identity.PeerID` &&
51 - wget "http://127.0.0.1:5001/ipns/$NAME" -O actual
51 + wget "http://127.0.0.1:5002/ipns/$NAME" -O actual
52 '
53
54 test_expect_failure "GET IPNS path output looks good" '
@@ -56,11 +56,11 @@ test_expect_failure "GET IPNS path output looks good" '
56 '
57
58 test_expect_success "GET invalid IPFS path errors" '
59 - test_must_fail wget http://127.0.0.1:5001/ipfs/12345
59 + test_must_fail wget http://127.0.0.1:5002/ipfs/12345
60 '
61
62 test_expect_success "GET invalid path errors" '
63 - test_must_fail wget http://127.0.0.1:5001/12345
63 + test_must_fail wget http://127.0.0.1:5002/12345
64 '
65
66 test_kill_ipfs_daemon