diff --git a/tests/dht/test_providers.nim b/tests/dht/test_providers.nim index 748930a..0897971 100644 --- a/tests/dht/test_providers.nim +++ b/tests/dht/test_providers.nim @@ -29,15 +29,19 @@ import proc bootstrapNodes( nodecount: int, bootnodes: seq[SignedPeerRecord], - rng = keys.newRng() + rng = keys.newRng(), + delay: int = 0 ) : Future[seq[(discv5_protocol.Protocol, keys.PrivateKey)]] {.async.} = + debug "---- STARTING BOOSTRAPS ---" for i in 0.. 0: + await sleepAsync(chronos.milliseconds(delay)) + #await allFutures(result.mapIt(it.bootstrap())) # this waits for bootstrap based on bootENode, which includes bonding with all its ping pongs