mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-01-12 09:44:14 +00:00
tests(flaky): Increase check timeouts (#995)
Increase checkExpiring timeouts to verify impact on flaky tests.
This commit is contained in:
parent
5594bcb33e
commit
9bc5ec1566
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,3 +16,4 @@ tests/pubsub/testgossipsub
|
|||||||
examples/*.md
|
examples/*.md
|
||||||
nimble.develop
|
nimble.develop
|
||||||
nimble.paths
|
nimble.paths
|
||||||
|
go-libp2p-daemon/
|
||||||
|
@ -114,7 +114,7 @@ proc bridgedConnections*: (Connection, Connection) =
|
|||||||
proc checkExpiringInternal(cond: proc(): bool {.raises: [], gcsafe.} ): Future[bool] {.async.} =
|
proc checkExpiringInternal(cond: proc(): bool {.raises: [], gcsafe.} ): Future[bool] {.async.} =
|
||||||
let start = Moment.now()
|
let start = Moment.now()
|
||||||
while true:
|
while true:
|
||||||
if Moment.now() > (start + chronos.seconds(5)):
|
if Moment.now() > (start + chronos.seconds(10)):
|
||||||
return false
|
return false
|
||||||
elif cond():
|
elif cond():
|
||||||
return true
|
return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user