Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/e2e/helpers/e2e_app_harness.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ class E2eAppHarness {
/// without "Timer is still pending" failures. Call at the end of a scenario.
Future<void> close(WidgetTester tester) async {
await tester.pumpWidget(const material.SizedBox.shrink());
// Let the database requests still in flight finish in real time first.
// Advancing the fake clock in 10 s steps while one is pending fires
// sqflite's "database has been locked" warning, which is noise here: the
// app holds no lock.
await tester.runAsync(
() => Future<void>.delayed(const Duration(milliseconds: 500)),
);
for (var i = 0; i < 6; i++) {
await tester.pump(const Duration(seconds: 10));
}
Expand Down
Loading