From a539db57b09c2119f79b919e3a53c256264ce590 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Wed, 14 May 2025 16:51:11 +0200 Subject: [PATCH] fix missing parameter --- dht-node/test/helpers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dht-node/test/helpers.ts b/dht-node/test/helpers.ts index 0301f7fae..1fd42066a 100644 --- a/dht-node/test/helpers.ts +++ b/dht-node/test/helpers.ts @@ -1,6 +1,7 @@ import { entities } from 'database' import { checkDBVersionUntil } from '@/typeorm/DBVersion' +import { CONFIG } from '@/config' export const headerPushMock = jest.fn((t) => { context.token = t.value @@ -23,7 +24,7 @@ export const cleanDB = async () => { } export const testEnvironment = async () => { - return { con: await checkDBVersionUntil() } + return { con: await checkDBVersionUntil(CONFIG.DB_CONNECT_RETRY_COUNT, CONFIG.DB_CONNECT_RETRY_DELAY_MS) } } export const resetEntity = async (entity: any) => {