Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
6c02259a
Commit
6c02259a
authored
Sep 14, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a basic test for unwant
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
c38ca003
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
test/sharness/t0220-bitswap.sh
test/sharness/t0220-bitswap.sh
+32
-0
No files found.
test/sharness/t0220-bitswap.sh
0 → 100755
View file @
6c02259a
#!/bin/sh
#
# Copyright (c) 2015 Jeromy Johnson
# MIT Licensed; see the LICENSE file in this repository.
#
test_description
=
"test bitswap commands"
.
lib/test-lib.sh
test_init_ipfs
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
'
test_expect_success
"'ipfs bitswap unwant' succeeds"
'
ipfs bitswap unwant $NONEXIST
'
test_expect_success
"hash was removed from wantlist"
'
ipfs bitswap wantlist > wantlist_out &&
printf "" > wantlist_exp &&
test_cmp wantlist_out wantlist_exp
'
test_kill_ipfs_daemon
test_done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment