From d0c49e649f5357eec2ec590fe71f7235ca0f6e54 Mon Sep 17 00:00:00 2001 From: Fardoche0 <290522594+Fardoche0@users.noreply.github.com> Date: Wed, 10 Jun 2026 17:03:20 -0400 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20PoolTestLogHandler=20s=C3=A9par?= =?UTF-8?q?=C3=A9ment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.IntegrationTests/PoolTestLogHandler.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Content.IntegrationTests/PoolTestLogHandler.cs b/Content.IntegrationTests/PoolTestLogHandler.cs index 909bee9785a..ad60aa671ee 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()