From bb0430e62b76690c7a6a3003556d332c46eb9430 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 9 Jan 2020 14:46:00 -0600 Subject: [PATCH] remove unnecesary clear timers call --- tests/pubsub/testgossipsub.nim | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/pubsub/testgossipsub.nim b/tests/pubsub/testgossipsub.nim index be88a00..d397e9b 100644 --- a/tests/pubsub/testgossipsub.nim +++ b/tests/pubsub/testgossipsub.nim @@ -57,7 +57,6 @@ suite "GossipSub": check: waitFor(runTests()) == true - getGlobalDispatcher().timers.clear() test "GossipSub validation should fail": proc runTests(): Future[bool] {.async.} = @@ -90,7 +89,6 @@ suite "GossipSub": check: waitFor(runTests()) == true - getGlobalDispatcher().timers.clear() test "GossipSub validation one fails and one succeeds": proc runTests(): Future[bool] {.async.} = @@ -130,7 +128,6 @@ suite "GossipSub": result = true check: waitFor(runTests()) == true - getGlobalDispatcher().timers.clear() test "GossipSub should add remote peer topic subscriptions": proc runTests(): Future[bool] {.async.} = @@ -164,7 +161,6 @@ suite "GossipSub": check: waitFor(runTests()) == true - getGlobalDispatcher().timers.clear() test "e2e - GossipSub should add remote peer topic subscriptions": proc testBasicGossipSub(): Future[bool] {.async.} = @@ -198,7 +194,6 @@ suite "GossipSub": check: waitFor(testBasicGossipSub()) == true - getGlobalDispatcher().timers.clear() test "GossipSub should add remote peer topic subscriptions if both peers are subscribed": proc runTests(): Future[bool] {.async.} = @@ -245,7 +240,6 @@ suite "GossipSub": check: waitFor(runTests()) == true - getGlobalDispatcher().timers.clear() test "e2e - GossipSub should add remote peer topic subscriptions if both peers are subscribed": proc testBasicGossipSub(): Future[bool] {.async.} = @@ -285,7 +279,6 @@ suite "GossipSub": check: waitFor(testBasicGossipSub()) == true - getGlobalDispatcher().timers.clear() # test "send over fanout A -> B": # proc runTests(): Future[bool] {.async.} = @@ -358,7 +351,6 @@ suite "GossipSub": check: waitFor(runTests()) == true - getGlobalDispatcher().timers.clear() # test "send over mesh A -> B": # proc runTests(): Future[bool] {.async.} = @@ -529,4 +521,3 @@ suite "GossipSub": check: waitFor(runTests()) == true - getGlobalDispatcher().timers.clear()