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 <noreply@anthropic.com>
This commit is contained in:
1 parent
8716b10933
commit
2bf7b28441
1 file changed
+4
@@ -476,6 +476,10 @@ void main() {
|
|||||||
isTrue,
|
isTrue,
|
||||||
);
|
);
|
||||||
expect(find.text(_l10n.discoveredContacts_contactAdded), findsOneWidget);
|
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());
|
await tester.pumpWidget(const SizedBox());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user