Skip to content

Commit

Permalink
fix dht tests now that bug is fixed
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
  • Loading branch information
whyrusleeping committed Oct 6, 2016
1 parent 6158537 commit 60546d2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/sharness/t0170-dht.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ test_expect_success 'put' '
test_fsh cat putted
'

test_expect_success "add a ref so we can find providers for it" '
echo "some stuff" > afile &&
HASH=$(ipfsi 3 add -q afile)
'

# ipfs dht findprovs <key>
test_expect_success 'findprovs' '
ipfsi 4 dht findprovs planet | sort >provs &&
sort provs putted | uniq -d >actual &&
[ -s actual ] ||
test_fsh cat actual
ipfsi 4 dht findprovs $HASH > provs &&
iptb get id 3 > expected &&
test_cmp provs expected
'

# ipfs dht get <key>
Expand Down

0 comments on commit 60546d2

Please sign in to comment.