Skip to content

Commit

Permalink
Fix leak in switch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markspanbroek committed Jun 22, 2021
1 parent 08e9f5c commit fa27f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testswitch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -714,12 +714,12 @@ suite "Switch":

await allFuturesThrowing(readers)
await switch2.stop() #Otherwise this leeks
await switch1.stop()

checkTracker(LPChannelTrackerName)
checkTracker(SecureConnTrackerName)
checkTracker(ChronosStreamTrackerName)

await switch1.stop()

# this needs to go at end
await allFuturesThrowing(awaiters)

Expand Down

0 comments on commit fa27f55

Please sign in to comment.