[flutter_tools] attempt to fix benchmark mode test (#54414)

This commit is contained in:
Jonah Williams
2020-04-10 10:10:04 -07:00
committed by GitHub
parent a5765331bc
commit de84c1e18a

View File

@@ -299,6 +299,9 @@ class HotRunner extends ResidentRunner {
// Measure time to perform a hot restart.
globals.printStatus('Benchmarking hot restart');
await restart(fullRestart: true, benchmarkMode: true);
// Wait for notifications to finish. attempt to work around
// timing issue caused by sentinel.
await Future<void>.delayed(const Duration(seconds: 1));
globals.printStatus('Benchmarking hot reload');
// Measure time to perform a hot reload.
await restart(fullRestart: false);