From b6b13b67625ddc03529dc5e0b12fd9ec1a26a015 Mon Sep 17 00:00:00 2001 From: Miguel de Elias Date: Wed, 3 Jun 2026 18:50:23 -0300 Subject: [PATCH] fix(dips): flaky cancel dips test --- .../indexer-common/src/indexing-fees/__tests__/dips.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/indexer-common/src/indexing-fees/__tests__/dips.test.ts b/packages/indexer-common/src/indexing-fees/__tests__/dips.test.ts index c58c1a8b2..406dd1c05 100644 --- a/packages/indexer-common/src/indexing-fees/__tests__/dips.test.ts +++ b/packages/indexer-common/src/indexing-fees/__tests__/dips.test.ts @@ -884,6 +884,10 @@ describe('DipsManager', () => { minSecondsPerCollection: 60, maxSecondsPerCollection: 300, }) + + const getCollectionInfo = jest.fn().mockResolvedValue([true, 1000n, 0n]) + network.contracts.RecurringCollector.getCollectionInfo = + getCollectionInfo as unknown as typeof network.contracts.RecurringCollector.getCollectionInfo }) test('pre-cancel collect attempt + successful cancel', async () => {