mirror of
https://github.com/ipfs/kubo.git
synced 2025-10-25 02:16:56 +08:00
t0220: check if 'ipfs bitswap' fails
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
@ -14,7 +14,8 @@ test_launch_ipfs_daemon
|
||||
test_expect_success "'ipfs block get' adds hash to wantlist" '
|
||||
export NONEXIST=QmeXxaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa &&
|
||||
test_expect_code 1 ipfs block get $NONEXIST --timeout=10ms &&
|
||||
ipfs bitswap wantlist | grep $NONEXIST
|
||||
ipfs bitswap wantlist >wantlist_out &&
|
||||
grep $NONEXIST wantlist_out
|
||||
'
|
||||
|
||||
test_expect_success "'ipfs bitswap unwant' succeeds" '
|
||||
|
||||
Reference in New Issue
Block a user