fix test imports

This commit is contained in:
munna0908 2025-04-01 23:44:46 +05:30 committed by Dmitriy Ryajov
parent 378a35319f
commit ffda691ea7
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
3 changed files with 6 additions and 1 deletions

View File

@ -50,6 +50,8 @@ type NatManager* = ref object
threadStarted: bool
natCloseChan: Channel[bool]
export natutils
logScope:
topics = "nat"

View File

@ -48,7 +48,7 @@ import ./utils/asynciter
import ./utils/trackedfutures
import ./nat
export logutils
export logutils, nat
logScope:
topics = "codex node"

View File

@ -78,6 +78,7 @@ template setupAndTearDown*() {.dirty.} =
pendingBlocks: PendingBlocksManager
discovery: DiscoveryEngine
advertiser: Advertiser
nat: NatManager
let
path = currentSourcePath().parentDir
@ -112,6 +113,7 @@ template setupAndTearDown*() {.dirty.} =
engine = BlockExcEngine.new(
localStore, wallet, network, discovery, advertiser, peerStore, pendingBlocks
)
nat = NatManager.new(NatConfig(hasExtIp: false, nat: NatNone))
store = NetworkStore.new(engine, localStore)
node = CodexNodeRef.new(
switch = switch,
@ -120,6 +122,7 @@ template setupAndTearDown*() {.dirty.} =
prover = Prover.none,
discovery = blockDiscovery,
taskpool = Taskpool.new(),
nat = nat,
)
teardown: