docs(acl): fix the two comment nits from the T1 re-review — displacement precision, straggler-test claim
This commit is contained in:
@@ -295,8 +295,9 @@ public sealed class SessionAclDecisionCacheTests
|
||||
cache.TryGet(generation: 1, Session, OpcUaOperation.Read, AddressSpaceRealm.Raw, Node, out _)
|
||||
.ShouldBeFalse("a superseded snapshot must recompute rather than read the newer generation");
|
||||
|
||||
// Asserted BEFORE the generation-2 lookup below, which would itself restore a rolled-back stamp and
|
||||
// hide the defect.
|
||||
// Asserted BEFORE the generation-2 lookup below, which would itself restore a rolled-back stamp —
|
||||
// so a stamp assertion made after it could never fail. (The purge half would still surface, as the
|
||||
// last lookup would miss; it is the stamp half that needs its assertion here.)
|
||||
cache.Generation.ShouldBe(2, "the straggler must not have rolled the stamp backward");
|
||||
cache.Count.ShouldBe(1, "and must not have purged the current generation's entries");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user