mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-30 17:52:33 +01:00
Every recordError runs the real crash pipeline. Its debug text starts DebugDiagnostics.gather, which does I/O that never completes in a widget test's fake time. Its 6 s timeout was still pending when the test ended. It failed the first recording test in help_center_layout_snapshot, help_center_page, help_center_sections, feedback_composer and feedback_prompt_flow. The abandoned timer also left the persist guard set, so later tests in the same file silently skipped the gather. test/flutter_test_config.dart now installs debugDiagnosticsGatherOverride with an empty snapshot that completes right away. It is set once for code outside tests and again before every test. The rest of the pipeline stays real. No test reads the real gather's output through debugText, so none needs to opt out; one that does sets the override to null. crash_persistence_test.dart pins it: a widget test records an error and must end with nothing pending, and the test after it must still gather. The support chat test no longer needs its 7 s pump. The link-card test's listener-swap comment now gives the reason that still applies. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>