Unverified Commit 3d77923b authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

fix coverage collection to un-red build (#35231)

parent 9c01d3a9
......@@ -196,10 +196,10 @@ Future<Map<String, dynamic>> collect(Uri serviceUri, bool Function(String) libra
}) async {
final VMService vmService = await connector(serviceUri);
await vmService.getVM();
final Isolate isolate = vmService.vm.isolates.firstWhere((Isolate isolate) => isolate.name == debugName);
if (!waitPaused) {
return _getAllCoverage(vmService, libraryPredicate);
}
final Isolate isolate = vmService.vm.isolates.firstWhere((Isolate isolate) => isolate.name == debugName);
const int kPollAttempts = 20;
int i = 0;
while (i < kPollAttempts) {
......
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