From 9325103f5dd0e0e05ef99063ae06574ffb814e98 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Fri, 2 Oct 2026 14:28:55 +0200 Subject: [PATCH] Flutter 3.47.6; dismiss re-arm test no longer passes only on Tue-Thu The expectation resolved the next alarm without the earned ramp set, while the app (correctly) re-arms with the minute the dismiss just earned. On a non-workday that is one minute apart, so the test failed Fri-Mon on any Flutter version. It now loads the policy exactly as the app does. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FBbkN4ZB4aUPJPzR2prRan --- .fvmrc | 2 +- phone_app/test/ring_session_handoff_test.dart | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.fvmrc b/.fvmrc index 827b556..9bc5a0b 100644 --- a/.fvmrc +++ b/.fvmrc @@ -1,3 +1,3 @@ { - "flutter": "3.47.5" + "flutter": "3.47.6" } diff --git a/phone_app/test/ring_session_handoff_test.dart b/phone_app/test/ring_session_handoff_test.dart index 6bd111a..fb0bf35 100644 --- a/phone_app/test/ring_session_handoff_test.dart +++ b/phone_app/test/ring_session_handoff_test.dart @@ -115,7 +115,10 @@ void main() { await AlarmPolicy.setEarlier(5, 0); final answers = await pumpApp(tester); await dismiss(tester, answers); - final next = AlarmPolicy.resolve(DateTime.now(), null); + // With the ramp minute this dismiss just earned: on a non-workday that is + // a minute earlier than the bare baseline, so a resolve() without the + // earned set only passed on Tue-Thu. + final next = await AlarmPolicy.load(); expect( calls.lastIndexOf('armSchedule'), greaterThan(calls.indexOf('dismiss')),