Skip to content

Commit

Permalink
Attempt at fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Aug 1, 2023
1 parent 454619c commit c64ef54
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ConfigCat.Client.Tests/EvaluationLogTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,10 @@ private static void RunTest(string testSetName, string? sdkKey, string? baseUrlO
Assert.AreEqual(expectedReturnValueParsed, actualReturnValue);

var expectedLogFilePath = GetReferencedTestFilePath(testSetName, expectedLogFileName);
var expectedLogText = File.ReadAllText(expectedLogFilePath);
var expectedLogText = string.Join(Environment.NewLine, File.ReadAllLines(expectedLogFilePath));

var actualLogText = string.Join(Environment.NewLine, logEvents
.Select(evt => FormatLogEvent(evt.Level, evt.EventId, ref evt.Message, evt.Exception))
.Concat(new[] { "" }));
.Select(evt => FormatLogEvent(evt.Level, evt.EventId, ref evt.Message, evt.Exception)));

Assert.AreEqual(expectedLogText, actualLogText);
}
Expand Down

0 comments on commit c64ef54

Please sign in to comment.