From f4e1147f64c0502cab5bdce2b3c5a63a5992bbd7 Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Wed, 21 Dec 2022 11:05:20 +0100 Subject: [PATCH] . --- tests/testautorelay.nim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/testautorelay.nim b/tests/testautorelay.nim index d10225dc2..61062b512 100644 --- a/tests/testautorelay.nim +++ b/tests/testautorelay.nim @@ -34,15 +34,11 @@ suite "Autorelay": checkTrackers() var - rng {.threadvar.}: ref HmacDrbgContext switchRelay {.threadvar.}: Switch switchClient {.threadvar.}: Switch relayClient {.threadvar.}: RelayClient autorelay {.threadvar.}: AutoRelayService - asyncSetup: - rng = newRng() - asyncTest "Simple test": switchRelay = createSwitch(Relay.new()) relayClient = RelayClient.new() @@ -51,7 +47,7 @@ suite "Autorelay": check: addresses[0] == buildRelayMA(switchRelay, switchClient) check: addresses.len() == 1 fut.complete() - autorelay = AutoRelayService.new(3, relayClient, checkMA, rng) + autorelay = AutoRelayService.new(3, relayClient, checkMA, newRng()) switchClient = createSwitch(relayClient, autorelay) await allFutures(switchClient.start(), switchRelay.start()) await switchClient.connect(switchRelay.peerInfo.peerId, switchRelay.peerInfo.addrs)