提交 ce1ca6ab 作者: Jeromy Johnson 提交者: GitHub

Merge pull request #4172 from ipfs/fix/test/t0170-query

test: query test might work sometimes, mark it as 'might fail' 
...@@ -55,13 +55,13 @@ test_expect_success 'get' ' ...@@ -55,13 +55,13 @@ test_expect_success 'get' '
## We query 3 different keys, to statisically lower the chance that the queryer ## We query 3 different keys, to statisically lower the chance that the queryer
## turns out to be the closest to what a key hashes to. ## turns out to be the closest to what a key hashes to.
# TODO: flaky. tracked by https://github.com/ipfs/go-ipfs/issues/2620 # TODO: flaky. tracked by https://github.com/ipfs/go-ipfs/issues/2620
test_expect_failure 'query' ' test_expect_success 'query' '
ipfsi 3 dht query banana >actual && ipfsi 3 dht query banana >actual &&
ipfsi 3 dht query apple >>actual && ipfsi 3 dht query apple >>actual &&
ipfsi 3 dht query pear >>actual && ipfsi 3 dht query pear >>actual &&
PEERS=$(wc -l actual | cut -d '"'"' '"'"' -f 1) && PEERS=$(wc -l actual | cut -d '"'"' '"'"' -f 1) &&
[ -s actual ] || [ -s actual ] ||
test_fsh cat actual test_might_fail test_fsh cat actual
' '
test_expect_success 'stop iptb' ' test_expect_success 'stop iptb' '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论