Skip to content

Commit

Permalink
chore: improve FPS
Browse files Browse the repository at this point in the history
  • Loading branch information
dtscalac committed Sep 19, 2024
1 parent f6bdeef commit cc4ce45
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion catalyst_voices/integration_test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ void main() {
(tester) async {
final args = await bootstrapTest();
await tester.pumpWidget(App(routerConfig: args.routerConfig));
await tester.pumpAndSettle(Duration(seconds: 15));
// let the application load
await tester.pump(Duration(seconds: 5));

// pump and settle every 100ms to simulate almost production-like FPS
await tester.pumpAndSettle(Duration(milliseconds: 100));

// wait 10s until the test is finished
await Future<void>.delayed(const Duration(seconds: 10));
});
});
}

0 comments on commit cc4ce45

Please sign in to comment.