From 68043411528df0099f46885c9a50cfb39a4d3d93 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 3 Dec 2026 10:21:18 -0500 Subject: [PATCH] test(worker): mark the MXA-003 stuck-poll shutdown test subscribed so MXA-011's idle skip doesn't bypass the poll --- .../MxAccess/MxAccessStaSessionTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ZB.MOM.WW.MxGateway.Worker.Tests/MxAccess/MxAccessStaSessionTests.cs b/src/ZB.MOM.WW.MxGateway.Worker.Tests/MxAccess/MxAccessStaSessionTests.cs index f0f8c265..abda4563 100644 --- a/src/ZB.MOM.WW.MxGateway.Worker.Tests/MxAccess/MxAccessStaSessionTests.cs +++ b/src/ZB.MOM.WW.MxGateway.Worker.Tests/MxAccess/MxAccessStaSessionTests.cs @@ -618,7 +618,8 @@ public sealed class MxAccessStaSessionTests [Fact] public async Task ShutdownGracefullyAsync_WhenStaIsStuckInAlarmPoll_TimesOutWithinGrace() { - FakeAlarmCommandHandler handler = new() { BlockPoll = true }; + // Subscribed, or the poll loop skips the STA hop entirely (MXA-011). + FakeAlarmCommandHandler handler = new() { BlockPoll = true, IsSubscribed = true }; FakeMxAccessComObjectFactory factory = new(); FakeMxAccessEventSink eventSink = new(); using StaRuntime runtime = CreateRuntime();