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();