From 2bf7b284411f4867478fab77d6710761c5c69ea2 Mon Sep 17 00:00:00 2001 From: TeTeHacko Date: Tue, 24 Nov 2026 12:22:37 +0100 Subject: [PATCH] Add contact test: let the advert notification batch window pass On a loaded runner the advert notification lands inside the throttle window, is queued behind a 5 s batch timer and the test ends with that timer pending (upstream test, failed in CI run 68808). Co-Authored-By: Claude Opus 5.5 --- test/screens/add_contact_screen_test.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/screens/add_contact_screen_test.dart b/test/screens/add_contact_screen_test.dart index 3c8861d9..75ec159b 100644 --- a/test/screens/add_contact_screen_test.dart +++ b/test/screens/add_contact_screen_test.dart @@ -476,6 +476,10 @@ void main() { isTrue, ); expect(find.text(_l10n.discoveredContacts_contactAdded), findsOneWidget); + // The advert notification is throttled (and batched behind a 5 s timer) + // when an earlier one fired just before, which a loaded runner hits: + // let the batch window pass so no timer outlives the test. + await tester.pump(const Duration(seconds: 6)); await tester.pumpWidget(const SizedBox()); });