From fb31b2d901b5876d7d6c98f9b1f0fb1954e5f016 Mon Sep 17 00:00:00 2001 From: Danil Date: Fri, 27 Sep 2024 16:16:47 +0200 Subject: [PATCH] Fix logs place Signed-off-by: Danil --- core/tests/ts-integration/tests/fees.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/tests/ts-integration/tests/fees.test.ts b/core/tests/ts-integration/tests/fees.test.ts index b3e4c2862bcf..2297d7232ccb 100644 --- a/core/tests/ts-integration/tests/fees.test.ts +++ b/core/tests/ts-integration/tests/fees.test.ts @@ -72,8 +72,9 @@ testFees('Test fees', function () { const pathToHome = path.join(__dirname, '../../../..'); const enableConsensus = process.env.ENABLE_CONSENSUS == 'true'; - async function logsPath(name: string): Promise { - return await logsTestPath(fileConfig.chain, 'logs/server/fees', name); + async function logsPath(chain: string | undefined, name: string): Promise { + chain = chain ? chain : 'default'; + return await logsTestPath(chain, 'logs/server/fees', name); } beforeAll(async () => { @@ -109,7 +110,7 @@ testFees('Test fees', function () { baseTokenAddress = contractsConfig.l1.base_token_addr; } - const pathToMainLogs = await logsPath('server.log'); + const pathToMainLogs = await logsPath(fileConfig.chain, 'server.log'); mainLogs = await fs.open(pathToMainLogs, 'a'); console.log(`Writing server logs to ${pathToMainLogs}`);