From 5122bf89329e29653164526768ef0df7f1dc1fe1 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 16:56:12 +0000 Subject: [PATCH] Make the action-budget re-read test independent of runner speed The test's fake clock used real timers, so a slow runner cut a read short with observe timed out. Use manual timers so the budget ends only when the test spends time. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Ls2e22fmrR6NnRk8W7bgDu --- tests/E2E.Mobile.Tests/Engine/DeterministicActionsTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/E2E.Mobile.Tests/Engine/DeterministicActionsTests.cs b/tests/E2E.Mobile.Tests/Engine/DeterministicActionsTests.cs index 509e4216..1ec38d4c 100644 --- a/tests/E2E.Mobile.Tests/Engine/DeterministicActionsTests.cs +++ b/tests/E2E.Mobile.Tests/Engine/DeterministicActionsTests.cs @@ -617,6 +617,8 @@ public async Task Keeps_the_input_checks_on_every_re_read_so_a_field_that_turned public async Task Stops_re_reading_a_moving_control_once_the_action_budget_cannot_fit_another_poll_and_sends_nothing() { var h = Resting(); + // The budget's waits end only when the test spends time, not in real time: a slow runner cannot cut a read short. + h.Clock.ManualTimers = true; var session = await OpenAttempt(h, actionTimeout: TimeSpan.FromMilliseconds(150)); // The poll's pause spends the action's budget, as a real wait does. h.Waits.Wait = (span, _) =>