Skip to content

Commit e14446f

Browse files
Replace tester.pumpAndSettle(); with tester.pump();
Replacing `tester.pumpAndSettle();` with `tester.pump();` resolves an issue where `pumpAndSettle()` waits for all animations to complete, causing an infinite loop with `CircularProgressIndicator`. Using `pump()` ensures efficient frame building without unnecessary animation waiting.
1 parent dc25c6a commit e14446f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/widgets/intro_message_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void main() {
1313
),
1414
);
1515

16-
await tester.pumpAndSettle();
16+
await tester.pump();
1717
expect(find.text('Welcome to API Dash ⚡️'), findsOneWidget);
1818

1919
expect(find.byType(RichText), findsAtLeastNWidgets(1));

0 commit comments

Comments
 (0)