Skip to content

Commit 8d314b8

Browse files
committed
Fix tests
1 parent aafcd05 commit 8d314b8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

scenarios/test_codegen/test/ChainManager_test.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ let populateChainQueuesWithRandomEvents = (~runTime=1000, ~maxBlockTime=15, ())
8484
},
8585
~newItems=[batchItem],
8686
~currentBlockHeight=currentBlockNumber.contents,
87+
~chain,
8788
)
8889
->Result.getExn
8990
| 2
@@ -102,6 +103,7 @@ let populateChainQueuesWithRandomEvents = (~runTime=1000, ~maxBlockTime=15, ())
102103
},
103104
~newItems=[batchItem],
104105
~currentBlockHeight=currentBlockNumber.contents,
106+
~chain,
105107
)
106108
->Result.getExn
107109
}

scenarios/test_codegen/test/lib_tests/PartitionedFetchState_test.res

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,11 @@ describe("PartitionedFetchState getMostBehindPartitions", () => {
243243
~message="Should have only one partition",
244244
)
245245

246+
let chain = ChainMap.Chain.makeUnsafe(~chainId=1)
246247
let updatedPartitionedFetchState =
247248
partitionedFetchState->PartitionedFetchState.registerDynamicContracts(
248249
{
249-
registeringEventChain: ChainMap.Chain.makeUnsafe(~chainId=1),
250+
registeringEventChain: chain,
250251
registeringEventBlockNumber: 10,
251252
registeringEventLogIndex: 0,
252253
dynamicContracts: [
@@ -283,6 +284,7 @@ describe("PartitionedFetchState getMostBehindPartitions", () => {
283284
~currentBlockHeight=200,
284285
~latestFetchedBlock={blockNumber: 20, blockTimestamp: 20 * 15},
285286
~newItems=[],
287+
~chain,
286288
) {
287289
| Ok(_) => ()
288290
| Error(PartitionedFetchState.UnexpectedPartitionDoesNotExist(_)) =>

0 commit comments

Comments
 (0)