Skip to content

Commit

Permalink
Fix logs place
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo committed Sep 27, 2024
1 parent f02b261 commit fb31b2d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/tests/ts-integration/tests/fees.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> {
return await logsTestPath(fileConfig.chain, 'logs/server/fees', name);
async function logsPath(chain: string | undefined, name: string): Promise<string> {
chain = chain ? chain : 'default';
return await logsTestPath(chain, 'logs/server/fees', name);
}

beforeAll(async () => {
Expand Down Expand Up @@ -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}`);

Expand Down

0 comments on commit fb31b2d

Please sign in to comment.