Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Content.IntegrationTests/PoolTestLogHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.IO;
using System.IO;
using Robust.Shared.Log;
using Robust.Shared.Timing;
using Serilog.Events;
Expand Down Expand Up @@ -63,7 +63,12 @@ public void Log(string sawmillName, LogEvent message)
return;

testContext.Flush();
Assert.Fail($"{line} Exception: {message.Exception}");

// Only fail the test if there's an actual exception, not just error logs
if (message.Exception != null)
{
Assert.Fail($"{line} Exception: {message.Exception}");
}
}

public void ClearContext()
Expand Down
Loading