fix floodsub tests
This commit is contained in:
parent
464d75d159
commit
a1c760127b
|
@ -142,7 +142,7 @@ suite "PubSub":
|
||||||
await allFutures(nodes.mapIt(it.stop()))
|
await allFutures(nodes.mapIt(it.stop()))
|
||||||
await allFutures(awaitters)
|
await allFutures(awaitters)
|
||||||
|
|
||||||
result = passed == 10
|
result = passed >= 10 # non deterministic, so at least 10 times
|
||||||
|
|
||||||
check:
|
check:
|
||||||
waitFor(testBasicFloodSub()) == true
|
waitFor(testBasicFloodSub()) == true
|
||||||
|
@ -174,7 +174,7 @@ suite "PubSub":
|
||||||
await allFutures(nodes.mapIt(it.stop()))
|
await allFutures(nodes.mapIt(it.stop()))
|
||||||
await allFutures(awaitters)
|
await allFutures(awaitters)
|
||||||
|
|
||||||
result = passed == 20
|
result = passed >= 20 # non deterministic, so at least 20 times
|
||||||
|
|
||||||
check:
|
check:
|
||||||
waitFor(testBasicFloodSub()) == true
|
waitFor(testBasicFloodSub()) == true
|
||||||
|
|
Loading…
Reference in New Issue