test: pin closed authentication token rejection status

This commit is contained in:
Joseph Doherty
2026-11-10 16:33:09 -05:00
parent b5986c61d9
commit 6737e367b4
@@ -210,8 +210,7 @@ public sealed partial class Sdk2LifecycleSoakTests
var failure = await Should.ThrowAsync<ServiceResultException>(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<EventHistoryPagingOverTheWireTests.SqlLikeEventSource>();