From d4807cd6b68cf79a0c272f81e1ae275628323af9 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sun, 23 Nov 2025 19:39:46 +0200 Subject: [PATCH] Skip updates for non-concluded tests --- GitHubActionsTestLogger/MtpLogger.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GitHubActionsTestLogger/MtpLogger.cs b/GitHubActionsTestLogger/MtpLogger.cs index 0456b05..ccb449f 100644 --- a/GitHubActionsTestLogger/MtpLogger.cs +++ b/GitHubActionsTestLogger/MtpLogger.cs @@ -79,6 +79,10 @@ CancellationToken cancellationToken message.TestNode.Properties.SingleOrDefault() ?? throw new InvalidOperationException("Test node state property is missing."); + // Only consider updates related to tests that have concluded in some final state + if (state is DiscoveredTestNodeStateProperty or InProgressTestNodeStateProperty) + return; + var exception = state.TryGetException(); var testDefinition = new TestDefinition(