diff --git a/Content.IntegrationTests/PoolTestLogHandler.cs b/Content.IntegrationTests/PoolTestLogHandler.cs index 909bee9785..ad60aa671e 100644 --- a/Content.IntegrationTests/PoolTestLogHandler.cs +++ b/Content.IntegrationTests/PoolTestLogHandler.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using Robust.Shared.Log; using Robust.Shared.Timing; using Serilog.Events; @@ -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()