Fix build (fix references to _flutter -> flutter) (#61568)
This commit is contained in:
parent
a1d4d1b1bf
commit
e8eb876489
@ -37,10 +37,10 @@ void main() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('multiple overlapping hot reload are debounced and queued', () async {
|
test('multiple overlapping hot reload are debounced and queued', () async {
|
||||||
await _flutter.run();
|
await flutter.run();
|
||||||
// Capture how many *real* hot reloads occur.
|
// Capture how many *real* hot reloads occur.
|
||||||
int numReloads = 0;
|
int numReloads = 0;
|
||||||
final StreamSubscription<void> subscription = _flutter.stdout
|
final StreamSubscription<void> subscription = flutter.stdout
|
||||||
.map(parseFlutterResponse)
|
.map(parseFlutterResponse)
|
||||||
.where(_isHotReloadCompletionEvent)
|
.where(_isHotReloadCompletionEvent)
|
||||||
.listen((_) => numReloads++);
|
.listen((_) => numReloads++);
|
||||||
@ -52,7 +52,7 @@ void main() {
|
|||||||
const Duration delay = Duration(milliseconds: hotReloadDebounceOverrideMs * 2);
|
const Duration delay = Duration(milliseconds: hotReloadDebounceOverrideMs * 2);
|
||||||
|
|
||||||
Future<void> doReload([void _]) =>
|
Future<void> doReload([void _]) =>
|
||||||
_flutter.hotReload(debounce: true, debounceDurationOverrideMs: hotReloadDebounceOverrideMs);
|
flutter.hotReload(debounce: true, debounceDurationOverrideMs: hotReloadDebounceOverrideMs);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await Future.wait<void>(<Future<void>>[
|
await Future.wait<void>(<Future<void>>[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user