From 162b010e79deba71a2b000c517706f532ec64a7a Mon Sep 17 00:00:00 2001 From: Krzysztof Nozderko Date: Thu, 5 Oct 2023 18:09:13 +0200 Subject: [PATCH] fix creating config paths on windows --- test/integration/testEasyLoggingOnConnecting.js | 2 +- test/unit/logger/easy_logging_starter_test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/testEasyLoggingOnConnecting.js b/test/integration/testEasyLoggingOnConnecting.js index 449ac465e..7be758433 100644 --- a/test/integration/testEasyLoggingOnConnecting.js +++ b/test/integration/testEasyLoggingOnConnecting.js @@ -113,7 +113,7 @@ describe('Easy logging tests', function () { const configContent = `{ "common": { "log_level": "${logLevel}", - "log_path": "${tempDir}" + "log_path": "${tempDir.replace(/\\/g, '\\\\')}" } }`; await writeFile(configFilePath, configContent); diff --git a/test/unit/logger/easy_logging_starter_test.js b/test/unit/logger/easy_logging_starter_test.js index 6b9fde3f4..e0d7ac855 100644 --- a/test/unit/logger/easy_logging_starter_test.js +++ b/test/unit/logger/easy_logging_starter_test.js @@ -112,7 +112,7 @@ describe('Easy logging starter tests', function () { const configContent = `{ "common": { "log_level": "${logLevel}", - "log_path": "${tempDir}" + "log_path": "${tempDir.replace(/\\/g, '\\\\')}" } }`; await writeFile(configFilePath, configContent);