Files
swiftcontrol/test/utils
Jonas Bark 0644dcf2ba test: fake the diagnostics gather so recorded errors don't leave timers pending
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>
2026-09-16 22:56:37 +02:00
..
2026-08-23 09:08:59 +02:00
2026-05-05 14:15:27 +02:00