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 threadStarted: bool
natCloseChan: Channel[bool] natCloseChan: Channel[bool]
export natutils
logScope: logScope:
topics = "nat" topics = "nat"

View File

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

View File

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