Skip to content

Commit

Permalink
fix tests under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-knozderko committed Feb 8, 2024
1 parent 5d2774e commit bf9244d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ public class EasyLoggingConfigGenerator
public const string EmptyCommonConfig = @"{
""common"": {}
}";

// public static readonly string WorkingDirectory = Path.Combine(Path.GetTempPath(), "easy_logging_test_configs_", Path.GetRandomFileName());


public static string CreateConfigTempFile(string workingDirectory, string fileContent)
{
var filePath = NewConfigFilePath(workingDirectory);
Expand All @@ -39,6 +37,7 @@ public static string Config(string logLevel, string logPath)
""log_path"": {logPath}
}
}"
.Replace("\\", "\\\\")
.Replace("{logLevel}", SerializeParameter(logLevel))
.Replace("{logPath}", SerializeParameter(logPath));
}
Expand Down

0 comments on commit bf9244d

Please sign in to comment.