Skip to content

Commit b797fc1

Browse files
niemyjskiejsmith
authored andcommitted
Fixed unit test that didn't work xplat due to different line endings
1 parent f07646c commit b797fc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Exceptionless.Tests/Log/FileExceptionlessLogTestBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public virtual void CanWriteToLogFile() {
1818
Assert.True(LogExists(log.FilePath));
1919
string contents = log.GetFileContents();
2020

21-
Assert.EndsWith(" Info Test\r\n", contents);
21+
Assert.Contains(" Info Test", contents);
2222
}
2323
}
2424

@@ -36,7 +36,7 @@ public virtual void LogFlushTimerWorks() {
3636
Assert.True(LogExists(log.FilePath));
3737
contents = log.GetFileContents();
3838

39-
Assert.EndsWith(" Info Test\r\n", contents);
39+
Assert.Contains(" Info Test", contents);
4040
}
4141
}
4242

0 commit comments

Comments
 (0)