@cryptotaxi247 / kubo / commits / a8fa9dd05

test: dht put/get round trips

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Apr 30, 2019 at 17:05 UTC a8fa9dd05a9616657aafa24963c225d6090ac5d2
1 file changed +6
test/sharness/t0170-dht.sh
+6
@@ -35,6 +35,12 @@ test_dht() {
35 [ -s putted ] ||
36 test_fsh cat putted
37 '
38 +
39 + test_expect_success 'put round trips' '
40 + echo -n "$TEST_DHT_VALUE" >expected &&
41 + ipfsi 0 dht get "$TEST_DHT_PATH" >actual &&
42 + test_cmp actual expected
43 + '
44
45 # ipfs dht get <key>
46 test_expect_success 'get with good keys' '