Skip to content

Commit

Permalink
tests(flaky): Increase check timeouts (#995)
Browse files Browse the repository at this point in the history
Increase checkExpiring timeouts to verify impact on flaky tests.
  • Loading branch information
AlejandroCabeza authored Jan 31, 2024
1 parent 5594bcb commit 9bc5ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ tests/pubsub/testgossipsub
examples/*.md
nimble.develop
nimble.paths
go-libp2p-daemon/
2 changes: 1 addition & 1 deletion tests/helpers.nim
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ proc bridgedConnections*: (Connection, Connection) =
proc checkExpiringInternal(cond: proc(): bool {.raises: [], gcsafe.} ): Future[bool] {.async.} =
let start = Moment.now()
while true:
if Moment.now() > (start + chronos.seconds(5)):
if Moment.now() > (start + chronos.seconds(10)):
return false
elif cond():
return true
Expand Down

0 comments on commit 9bc5ec1

Please sign in to comment.