From 3456dff03893cf359e6c983b1b3e2a67329fee7a Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 26 Jul 2026 12:31:48 +0200 Subject: [PATCH] test(streaming): respect retained retirement barrier Update the stale readiness fixture to preserve Slice E's cursor-budgeted Near retirement boundary before publishing the replacement Far base. The exact committed baseline deterministically failed because the test still assumed both transactions could cross the same frame. Co-authored-by: Codex --- .../Streaming/StreamingControllerReadinessTests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/AcDream.App.Tests/Streaming/StreamingControllerReadinessTests.cs b/tests/AcDream.App.Tests/Streaming/StreamingControllerReadinessTests.cs index 9c4c2257..20add222 100644 --- a/tests/AcDream.App.Tests/Streaming/StreamingControllerReadinessTests.cs +++ b/tests/AcDream.App.Tests/Streaming/StreamingControllerReadinessTests.cs @@ -394,6 +394,12 @@ public sealed class StreamingControllerReadinessTests farBase, mesh)); controller.Tick(0x12, 0x39); + // Slice E retains retirement as a cursor-budgeted transaction. A + // generous frame can retire Near and resume Far immediately; a frame + // that exhausts its elapsed budget resumes on the next Tick. Pin the + // converged state rather than wall-clock-dependent frame count. + for (int i = 0; i < 4 && appliedBuilds.Count < 2; i++) + controller.Tick(0x12, 0x39); Assert.Equal(1, ensureCalls); Assert.DoesNotContain(geometryId, meshes.ReferenceCounts);