test: query test might work sometimes, mark it as 'might fail'

Currently it is 'expect failure' and if it works on occasion it will
fail the CI build

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2017-08-28 18:58:34 +02:00
parent 48476b2928
commit bc8d72cfce
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -55,13 +55,13 @@ test_expect_success 'get' '
## 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.
# 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 apple >>actual &&
ipfsi 3 dht query pear >>actual &&
PEERS=$(wc -l actual | cut -d '"'"' '"'"' -f 1) &&
[ -s actual ] ||
test_fsh cat actual
test_might_fail test_fsh cat actual
'
test_expect_success 'stop iptb' '