Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/kubo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 51366e58e5c1^
Choose a base ref
...
head repository: ipfs/kubo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: acb364efaf05
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 3, 2015

  1. t0220: use test_must_be_empty()

    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed Oct 3, 2015
    Copy the full SHA
    51366e5 View commit details
  2. t0220: check if 'ipfs bitswap' fails

    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed Oct 3, 2015
    Copy the full SHA
    acb364e View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/sharness/t0220-bitswap.sh
6 changes: 3 additions & 3 deletions test/sharness/t0220-bitswap.sh
Original file line number Diff line number Diff line change
@@ -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" '
@@ -23,8 +24,7 @@ test_expect_success "'ipfs bitswap unwant' succeeds" '

test_expect_success "hash was removed from wantlist" '
ipfs bitswap wantlist > wantlist_out &&
printf "" > wantlist_exp &&
test_cmp wantlist_out wantlist_exp
test_must_be_empty wantlist_out
'

test_kill_ipfs_daemon