t0220: check if 'ipfs bitswap' fails
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Oct 4, 2015 at 00:18 UTC
93aa8d0fb3901797b837a4c86cbe32657f1d2d10
1 file changed
+2
-1
test/sharness/t0220-bitswap.sh
+2
-1
@@ -14,7 +14,8 @@ test_launch_ipfs_daemon
14
test_expect_success "'ipfs block get' adds hash to wantlist" '
15
export NONEXIST=QmeXxaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa &&
16
test_expect_code 1 ipfs block get $NONEXIST --timeout=10ms &&
17
- ipfs bitswap wantlist | grep $NONEXIST
17
+ ipfs bitswap wantlist >wantlist_out &&
18
+ grep $NONEXIST wantlist_out
19
'
20
21
test_expect_success "'ipfs bitswap unwant' succeeds" '