fix: fix test imports

This commit is contained in:
Hanno Cornelius 2023-06-09 12:36:23 +02:00
parent c645f9160b
commit 6a89cdd8bc
No known key found for this signature in database
GPG Key ID: 081F615B3EDEF8DE
6 changed files with 8 additions and 10 deletions

View File

@ -2,8 +2,6 @@ import
chronos, bearssl/rand,
eth/[keys, p2p]
import libp2p/crypto/crypto
var nextPort = 30303
proc localAddress*(port: int): Address =
@ -38,7 +36,7 @@ proc getRng(): ref rand.HmacDrbgContext =
# purpose of the tests, it's ok as long as we only use a single thread
{.gcsafe.}:
if rngVar.rng.isNil:
rngVar.rng = crypto.newRng()
rngVar.rng = newRng()
rngVar.rng
template rng*(): ref rand.HmacDrbgContext =

View File

@ -4,8 +4,8 @@ import
std/[options, os, strutils],
testutils/unittests, stew/byteutils, json_rpc/[rpcserver, rpcclient],
eth/common as eth_common, eth/[keys, p2p],
../../waku/v1/protocol/waku_protocol,
../../waku/v1/node/rpc/[hexstrings, rpc_types, waku, key_storage]
../../waku/protocol/waku_protocol,
../../waku/node/rpc/[hexstrings, rpc_types, waku, key_storage]
template sourceDir*: string = currentSourcePath.rsplit(DirSep, 1)[0]
## Generate client convenience marshalling wrappers from forward declarations

View File

@ -12,8 +12,8 @@ import
std/[sequtils, tables],
chronos, testutils/unittests, eth/p2p, eth/p2p/peer_pool,
../../waku/whisper/whisper_protocol as whisper,
../../waku/v1/protocol/waku_protocol as waku,
../../waku/v1/protocol/waku_bridge,
../../waku/protocol/waku_protocol as waku,
../../waku/protocol/waku_bridge,
../test_helpers
let safeTTL = 5'u32

View File

@ -10,7 +10,7 @@
import
std/[sequtils, options, unittest, times],
../../waku/v1/protocol/waku_protocol
../../waku/protocol/waku_protocol
suite "Waku envelope validation":
test "should validate and allow envelope according to config":

View File

@ -11,7 +11,7 @@
import
std/[sequtils, tables],
chronos, testutils/unittests, eth/[keys, p2p], eth/p2p/peer_pool,
../../waku/v1/protocol/waku_protocol,
../../waku/protocol/waku_protocol,
../test_helpers
const

View File

@ -3,7 +3,7 @@
import
std/[tables, sequtils, times],
chronos, testutils/unittests, eth/[p2p, async_utils], eth/p2p/peer_pool,
../../waku/v1/protocol/[waku_protocol, waku_mail],
../../waku/protocol/[waku_protocol, waku_mail],
../test_helpers
const