mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
test: dht put/get round trips
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
cc2ab147ab
commit
a8fa9dd05a
@ -35,6 +35,12 @@ test_dht() {
|
||||
[ -s putted ] ||
|
||||
test_fsh cat putted
|
||||
'
|
||||
|
||||
test_expect_success 'put round trips' '
|
||||
echo -n "$TEST_DHT_VALUE" >expected &&
|
||||
ipfsi 0 dht get "$TEST_DHT_PATH" >actual &&
|
||||
test_cmp actual expected
|
||||
'
|
||||
|
||||
# ipfs dht get <key>
|
||||
test_expect_success 'get with good keys' '
|
||||
|
||||
Loading…
Reference in New Issue
Block a user