@@ -417,29 +417,6 @@ describe("Single Chain Simple Rollback", () => {
417417let undefined = (%raw (` undefined ` ) : option <'a >)
418418
419419describe ("E2E rollback tests" , () => {
420- let initialEnterReorgThreshold = async (~sourceMock : M .Source .t ) => {
421- Assert .deepEqual (
422- sourceMock .getHeightOrThrowCalls -> Array .length ,
423- 1 ,
424- ~message = "should have called getHeightOrThrow to get initial height" ,
425- )
426- sourceMock .resolveGetHeightOrThrow (300 )
427- await Utils .delay (0 )
428- await Utils .delay (0 )
429-
430- let expectedGetItemsCall1 = {"fromBlock" : 0 , "toBlock" : Some (100 ), "retry" : 0 }
431-
432- Assert .deepEqual (
433- sourceMock .getItemsOrThrowCalls ,
434- [expectedGetItemsCall1 ],
435- ~message = "Should request items until reorg threshold" ,
436- )
437- sourceMock .resolveGetItemsOrThrow ([])
438- await Utils .delay (0 )
439- await Utils .delay (0 )
440- await Utils .delay (0 )
441- }
442-
443420 let testSingleChainRollback = async (~sourceMock : M .Source .t , ~indexerMock : M .Indexer .t ) => {
444421 Assert .deepEqual (
445422 sourceMock .getItemsOrThrowCalls -> Utils .Array .last ,
@@ -736,7 +713,7 @@ describe("E2E rollback tests", () => {
736713 )
737714 await Utils .delay (0 )
738715
739- await initialEnterReorgThreshold (~sourceMock )
716+ await M . Helper . initialEnterReorgThreshold (~sourceMock )
740717 await testSingleChainRollback (~sourceMock , ~indexerMock )
741718 })
742719
@@ -766,8 +743,8 @@ describe("E2E rollback tests", () => {
766743 await Utils .delay (0 )
767744
768745 let _ = await Promise .all2 ((
769- initialEnterReorgThreshold (~sourceMock = sourceMock1 ),
770- initialEnterReorgThreshold (~sourceMock = sourceMock2 ),
746+ M . Helper . initialEnterReorgThreshold (~sourceMock = sourceMock1 ),
747+ M . Helper . initialEnterReorgThreshold (~sourceMock = sourceMock2 ),
771748 ))
772749
773750 await testSingleChainRollback (~sourceMock = sourceMock1 , ~indexerMock )
@@ -789,7 +766,7 @@ describe("E2E rollback tests", () => {
789766 )
790767 await Utils .delay (0 )
791768
792- await initialEnterReorgThreshold (~sourceMock )
769+ await M . Helper . initialEnterReorgThreshold (~sourceMock )
793770
794771 let calls = []
795772 let handler : Types .HandlerTypes .loader <unit , unit > = async ({event }) => {
@@ -1050,8 +1027,8 @@ This might be wrong after we start exposing a block hash for progress block.`,
10501027 await Utils .delay (0 )
10511028
10521029 let _ = await Promise .all2 ((
1053- initialEnterReorgThreshold (~sourceMock = sourceMock1337 ),
1054- initialEnterReorgThreshold (~sourceMock = sourceMock100 ),
1030+ M . Helper . initialEnterReorgThreshold (~sourceMock = sourceMock1337 ),
1031+ M . Helper . initialEnterReorgThreshold (~sourceMock = sourceMock100 ),
10551032 ))
10561033
10571034 let callCount = ref (0 )
0 commit comments