From 6737e367b4de14bc90db36537a60de6cf76f9e56 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 10 Nov 2026 16:33:09 -0500 Subject: [PATCH] test: pin closed authentication token rejection status --- .../Sdk2LifecycleCloseOwnershipTests.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests/Sdk2LifecycleCloseOwnershipTests.cs b/tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests/Sdk2LifecycleCloseOwnershipTests.cs index 93be34e4..4f974d6d 100644 --- a/tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests/Sdk2LifecycleCloseOwnershipTests.cs +++ b/tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests/Sdk2LifecycleCloseOwnershipTests.cs @@ -210,8 +210,7 @@ public sealed partial class Sdk2LifecycleSoakTests var failure = await Should.ThrowAsync(async () => await fresh.ReadAsync(requestHeader, 0, TimestampsToReturn.Neither, [new ReadValueId { NodeId = Raw(fresh, Scalar), AttributeId = Attributes.Value }], ct)); - // Exact outcome is recorded and narrowed at the reviewed execution gate. - (failure.StatusCode == StatusCodes.BadSessionIdInvalid || failure.StatusCode == StatusCodes.BadSessionClosed).ShouldBeTrue(); + failure.StatusCode.ShouldBe(StatusCodes.BadSessionIdInvalid); requestHeader.AuthenticationToken.ShouldBe(oldAuthentication); (await fresh.BrowseNextAsync(null, false, [browse], ct)).Results[0].StatusCode.ShouldBe(StatusCodes.BadContinuationPointInvalid); var source = rig.Nm.HistorianDataSource.ShouldBeOfType();