From 7e3974f9c83f174c1f120554856ee492a1a2bdf0 Mon Sep 17 00:00:00 2001 From: Tanguy Cizain Date: Wed, 23 Jun 2021 17:27:52 +0200 Subject: [PATCH] Fix flaky macos switch test (#592) * sleep to avoid flaky switch test on macos * Update tests/testswitch.nim Co-authored-by: markspanbroek Co-authored-by: markspanbroek --- tests/testswitch.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testswitch.nim b/tests/testswitch.nim index b41dfdb0d..1afcbbcf2 100644 --- a/tests/testswitch.nim +++ b/tests/testswitch.nim @@ -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)