From 3078c738bec0c85603aa3a163b17ec54b80d26c2 Mon Sep 17 00:00:00 2001 From: Timo Erdelt Date: Wed, 16 Oct 2024 15:42:21 +0200 Subject: [PATCH] fix(history-importer) move check for recent log error to correct place --- .../pair-liquidity-info-history-importer.service.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tasks/pair-liquidity-info-history-importer/pair-liquidity-info-history-importer.service.spec.ts b/src/tasks/pair-liquidity-info-history-importer/pair-liquidity-info-history-importer.service.spec.ts index ef02cf2..6124848 100644 --- a/src/tasks/pair-liquidity-info-history-importer/pair-liquidity-info-history-importer.service.spec.ts +++ b/src/tasks/pair-liquidity-info-history-importer/pair-liquidity-info-history-importer.service.spec.ts @@ -142,7 +142,7 @@ describe('PairLiquidityInfoHistoryImporterService', () => { expect( mockPairLiquidityInfoHistoryErrorDb.getErrorWithinHours, - ).toHaveBeenCalledTimes(7); // Once for pair and 7 times for each (relevant) event log + ).toHaveBeenCalledTimes(8); // Once for pair and 7 times for each (relevant) event log expect(mockPairLiquidityInfoHistoryDb.upsert).toHaveBeenCalledTimes(5); expect( @@ -235,7 +235,7 @@ describe('PairLiquidityInfoHistoryImporterService', () => { expect( mockPairLiquidityInfoHistoryErrorDb.getErrorWithinHours, - ).toHaveBeenCalledTimes(3); // Once for pair and 2 times for each event log + ).toHaveBeenCalledTimes(5); // Once for pair and 4 times for each event log expect( mockPairLiquidityInfoHistoryDb.upsert.mock.calls,