fix: block_processor test

This commit is contained in:
Agnish Ghosh 2024-06-29 18:54:08 +05:30
parent c8d957a495
commit 8292341048
No known key found for this signature in database
GPG Key ID: 7E927C221EBA4F6E
1 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ import
../beacon_chain/gossip_processing/block_processor,
../beacon_chain/consensus_object_pools/[
attestation_pool, blockchain_dag, blob_quarantine, block_quarantine,
block_clearance, consensus_manager],
data_column_quarantine, block_clearance, consensus_manager],
../beacon_chain/el/el_manager,
./testutil, ./testdbutil, ./testblockutil
@ -44,6 +44,7 @@ suite "Block processor" & preset():
taskpool = Taskpool.new()
quarantine = newClone(Quarantine.init())
blobQuarantine = newClone(BlobQuarantine())
dataColumnQuarantine = newClone(DataColumnQuarantine())
attestationPool = newClone(AttestationPool.init(dag, quarantine))
elManager = new ELManager # TODO: initialise this properly
actionTracker: ActionTracker
@ -58,7 +59,7 @@ suite "Block processor" & preset():
getTimeFn = proc(): BeaconTime = b2.message.slot.start_beacon_time()
processor = BlockProcessor.new(
false, "", "", rng, taskpool, consensusManager,
validatorMonitor, blobQuarantine, getTimeFn)
validatorMonitor, blobQuarantine, dataColumnQuarantine, getTimeFn)
processorFut = processor.runQueueProcessingLoop()
asyncTest "Reverse order block add & get" & preset():