# Global per-test timeout. Without it, a widget test that pumpAndSettle()s a # screen with a never-settling source (a live Drift/Nostr stream, a periodic # Timer, connectivity_plus, a plugin) waits at the 10-minute default and the # whole run LOOKS hung. With this, such a test FAILS in 90s and names itself. # # The everyday, hang-proof gate is the logic layer, not widgets: # dart test packages/commons_core # pure Dart, ~1s # flutter test test/services # logic + in-memory DB, ~10s, no widgets # Run widget tests targeted (flutter test test/ui/), never blind, and # never pumpAndSettle a live screen — pump(Duration) a bounded number of times. # # A genuinely slower (but finite) test can opt out with @Timeout(Duration(...)). timeout: 90s