mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-11 19:13:55 +01:00
14 tests failed with a RemoteSyncError from listDirectory, and the cause was not in the screen they were testing. The sync guard short-circuits on "no backend configured", but it asks that question two ways: the sync token AND whether a Firebase account exists. The tests faked the token into secure storage and stopped there, so on a machine holding a cached refresh token the real factory answered yes, the guard opened, and the fetch escaped to the network -- where flutter_test blocks HttpClient. That went unnoticed until the Linux desktop target landed, because the desktop build is what authenticates from the shared refresh token: the same tests pass on the commit before it, on this machine, this minute. So the fixture now pins firebaseFactory to "no account" by default, which is what the faked token was already trying to express, and HistoryScreen takes it as a tests-only seam next to the httpClient one it already had. The two direct constructions in workout_sync_read_test.dart are pinned the same way. 402 Flutter tests pass and flutter analyze is clean. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DfJC1Wu1SEgJ6X49k5Jqtg |
||
|---|---|---|
| .. | ||
| github_mirror_screen_widgets.dart | ||
| github_mirror_screen.dart | ||
| history_screen_charts.dart | ||
| history_screen_data.dart | ||
| history_screen_painter.dart | ||
| history_screen_tiles.dart | ||
| history_screen.dart | ||
| home_screen_cards.dart | ||
| home_screen_navigation.dart | ||
| home_screen.dart | ||
| manual_workout_form_parts.dart | ||
| manual_workout_screen.dart | ||
| settings_screen_actions.dart | ||
| settings_screen_exercise_sections.dart | ||
| settings_screen_rows.dart | ||
| settings_screen_sections.dart | ||
| settings_screen_thresholds.dart | ||
| settings_screen_widget.dart | ||
| settings_screen.dart | ||
| workout_screen_appbar.dart | ||
| workout_screen_body.dart | ||
| workout_screen_breaks.dart | ||
| workout_screen_dialogs.dart | ||
| workout_screen_finish.dart | ||
| workout_screen_session.dart | ||
| workout_screen.dart | ||