Fix flaky macos switch test (#592)

* sleep to avoid flaky switch test on macos

* Update tests/testswitch.nim

Co-authored-by: markspanbroek <mark@spanbroek.net>

Co-authored-by: markspanbroek <mark@spanbroek.net>
This commit is contained in:
Tanguy Cizain 2021-06-23 17:27:52 +02:00 committed by GitHub
parent bee91538ef
commit 7e3974f9c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -713,7 +713,9 @@ suite "Switch":
readers.add(closeReader())
await allFuturesThrowing(readers)
await switch2.stop() #Otherwise this leeks
await switch2.stop() #Otherwise this leaks
check await checkExpiring(not switch1.isConnected(switch2.peerInfo.peerID))
checkTracker(LPChannelTrackerName)
checkTracker(SecureConnTrackerName)
checkTracker(ChronosStreamTrackerName)