Unverified Commit 97fef98b authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

[flutter_tools] remove await runZonedGuarded() in tests (#142336)

For context https://github.com/flutter/flutter/issues/142338
parent e1785b31
...@@ -2130,10 +2130,10 @@ flutter: ...@@ -2130,10 +2130,10 @@ flutter:
vmServiceUris: Stream<Uri>.value(testUri), vmServiceUris: Stream<Uri>.value(testUri),
); );
final Completer<void> done = Completer<void>(); final Completer<void> done = Completer<void>();
await runZonedGuarded( unawaited(runZonedGuarded(
() => flutterDevice.connect(allowExistingDdsInstance: true).then((_) => done.complete()), () => flutterDevice.connect(allowExistingDdsInstance: true).then((_) => done.complete()),
(_, __) => done.complete(), (_, __) => done.complete(),
); ));
await done.future; await done.future;
expect(device.dds.uri, Uri.parse('http://localhost/existingDdsInField')); expect(device.dds.uri, Uri.parse('http://localhost/existingDdsInField'));
}, overrides: <Type, Generator>{ }, overrides: <Type, Generator>{
...@@ -2164,10 +2164,10 @@ flutter: ...@@ -2164,10 +2164,10 @@ flutter:
vmServiceUris: Stream<Uri>.value(testUri), vmServiceUris: Stream<Uri>.value(testUri),
); );
final Completer<void>done = Completer<void>(); final Completer<void>done = Completer<void>();
await runZonedGuarded( unawaited(runZonedGuarded(
() => flutterDevice.connect(allowExistingDdsInstance: true).then((_) => done.complete()), () => flutterDevice.connect(allowExistingDdsInstance: true).then((_) => done.complete()),
(_, __) => done.complete(), (_, __) => done.complete(),
); ));
await done.future; await done.future;
expect(device.dds.uri, Uri.parse('http://localhost/existingDdsInMessage')); expect(device.dds.uri, Uri.parse('http://localhost/existingDdsInMessage'));
}, overrides: <Type, Generator>{ }, overrides: <Type, Generator>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment