提交 17533b43 作者: Steven Allen

sharness: disable broken test

We can no longer test this with bad keys. Unfortunately, good keys will likely
contain a newline and we have no way to send such keys to the server due to how
API requests are formatted.
上级 a2a70d2c
...@@ -30,13 +30,13 @@ test_dht() { ...@@ -30,13 +30,13 @@ test_dht() {
' '
# ipfs dht put <key> <value> # ipfs dht put <key> <value>
test_expect_success 'put with good keys' ' test_expect_failure 'put with good keys (#3124)' '
ipfsi 0 dht put "$TEST_DHT_PATH" "$TEST_DHT_VALUE" | sort >putted && ipfsi 0 dht put "$TEST_DHT_PATH" "$TEST_DHT_VALUE" | sort >putted &&
[ -s putted ] || [ -s putted ] ||
test_fsh cat putted test_fsh cat putted
' '
test_expect_success 'put round trips' ' test_expect_failure 'put round trips (#3124)' '
echo -n "$TEST_DHT_VALUE" >expected && echo -n "$TEST_DHT_VALUE" >expected &&
ipfsi 0 dht get "$TEST_DHT_PATH" >actual && ipfsi 0 dht get "$TEST_DHT_PATH" >actual &&
test_cmp actual expected test_cmp actual expected
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论