From f636b7b17f6220d63aa507aaea27b0201331810d Mon Sep 17 00:00:00 2001 From: Vincent Chau <99756290+vincentwschau@users.noreply.github.com> Date: Tue, 17 Sep 2024 17:02:58 -0400 Subject: [PATCH] Make sure tests won't flake. --- .../__tests__/controllers/api/v4/vault-controller.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexer/services/comlink/__tests__/controllers/api/v4/vault-controller.test.ts b/indexer/services/comlink/__tests__/controllers/api/v4/vault-controller.test.ts index 50daa133ae..c0a9fe6c6e 100644 --- a/indexer/services/comlink/__tests__/controllers/api/v4/vault-controller.test.ts +++ b/indexer/services/comlink/__tests__/controllers/api/v4/vault-controller.test.ts @@ -25,7 +25,7 @@ describe('vault-controller#V4', () => { const currentBlockHeight: string = '7'; const twoHourBlockHeight: string = '5'; const twoDayBlockHeight: string = '3'; - const currentTime: DateTime = DateTime.utc(); + const currentTime: DateTime = DateTime.utc().startOf('day').minus({ hour: 5 }); const twoHoursAgo: DateTime = currentTime.minus({ hour: 2 }); const twoDaysAgo: DateTime = currentTime.minus({ day: 2 }); const initialFundingIndex: string = '10000';