Change from .first to .single to ensure this (#19981)

This commit is contained in:
Danny Tuppeny
2018-07-31 08:05:24 +01:00
committed by GitHub
parent cb03ca1d9a
commit 12eff1d5da

View File

@@ -195,7 +195,7 @@ class FlutterTestDriver {
// Currently these tests only have a single isolate. If this
// ceases to be the case, this code will need changing.
final VM vm = await vmService.getVM();
return await vm.isolates.first.load();
return await vm.isolates.single.load();
}
Future<void> addBreakpoint(String path, int line) async {