Skip to content

Commit cbcf20b

Browse files
authored
Fix benchmark tests (#9675)
1 parent 5710fde commit cbcf20b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/devtools_app/benchmark/test_infra/automators/_cpu_profiler_automator.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ class CpuProfilerScreenAutomator {
3535
// Switch to all other CPU profiler tabs and scroll to the end.
3636
logStatus('Switching to Call Tree tab.');
3737
await controller.tap(find.widgetWithText(InkWell, 'Call Tree'));
38-
await controller.pump(longPumpDuration);
38+
await controller.pumpAndSettle(longPumpDuration);
3939
logStatus('Scrolling through Call Tree table.');
4040
await scrollToEnd<CpuCallTreeTable>(controller);
4141

4242
logStatus('Switching to Method Table tab.');
4343
await controller.tap(find.widgetWithText(InkWell, 'Method Table'));
44-
await controller.pump(longPumpDuration);
44+
await controller.pumpAndSettle(longPumpDuration);
4545
logStatus('Scrolling through Method Table.');
4646
await scrollToEnd<MethodTable>(controller);
4747

4848
logStatus('Switching to CPU Flame Chart tab.');
4949
await controller.tap(find.widgetWithText(InkWell, 'CPU Flame Chart'));
50-
await controller.pump(longPumpDuration);
50+
await controller.pumpAndSettle(longPumpDuration);
5151
logStatus('Scrolling through CPU Flame Chart.');
5252
await scrollToEnd<CpuProfileFlameChart>(controller);
5353

0 commit comments

Comments
 (0)