@cryptotaxi247 / kubo / commits / 3e57460c8

t0220: show breakage with ipfs bitswap wantlist -p

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

Christian Couder committed Oct 29, 2015 at 15:37 UTC 3e57460c87e99141098faf1fe6bc9be39df5e134
1 file changed +21
test/sharness/t0220-bitswap.sh
+21
@@ -36,6 +36,19 @@ EOF
36 test_cmp expected stat_out
37 '
38
39 +test_expect_success "ipfs peer id looks good" '
40 + PEERID=$(ipfs config Identity.PeerID) &&
41 + test_check_peerid "$PEERID"
42 +'
43 +
44 +test_expect_success "'ipfs bitswap wantlist -p' works" '
45 + ipfs bitswap wantlist -p "$PEERID" >wantlist_p_out
46 +'
47 +
48 +test_expect_failure "'ipfs bitswap wantlist -p' output looks good" '
49 + test_cmp wantlist_out wantlist_p_out
50 +'
51 +
52 test_expect_success "'ipfs bitswap unwant' succeeds" '
53 ipfs bitswap unwant $NONEXIST
54 '
@@ -62,6 +75,14 @@ EOF
75 test_cmp expected stat_out
76 '
77
78 +test_expect_success "'ipfs bitswap wantlist -p' works" '
79 + ipfs bitswap wantlist -p "$PEERID" >wantlist_p_out
80 +'
81 +
82 +test_expect_success "'ipfs bitswap wantlist -p' output looks good" '
83 + test_cmp wantlist_out wantlist_p_out
84 +'
85 +
86 test_kill_ipfs_daemon
87
88 test_done