Skip to content

Commit

Permalink
fix(test): No need to await model.init()
Browse files Browse the repository at this point in the history
The page calls init already.
Awaiting pumpAndSettle is enough.
  • Loading branch information
CarlosNihelton committed Nov 21, 2023
1 parent 5e52596 commit 50790bb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gui/packages/ubuntupro/test/startup/startup_page_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ void main() {
final model = StartupModel(monitor);
await tester.pumpWidget(buildApp(model));

await model.init();
await tester.pumpAndSettle();

expect(find.byType(LinearProgressIndicator), findsNothing);
Expand Down

0 comments on commit 50790bb

Please sign in to comment.