Skip to content

Commit fa4ca71

Browse files
committed
Use Future.wait and increase timeout
1 parent b492d9f commit fa4ca71

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

dwds/lib/src/services/chrome_proxy_service.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,10 @@ class ChromeProxyService implements VmServiceInterface {
474474
final isolate = inspector.isolate;
475475

476476
final debugger = await debuggerFuture;
477-
for (final breakpoint in isolate.breakpoints?.toList() ?? <Breakpoint>[]) {
478-
await debugger.removeBreakpoint(breakpoint.id!);
479-
}
477+
await Future.wait([
478+
for (final breakpoint in isolate.breakpoints ?? <Breakpoint>[])
479+
debugger.removeBreakpoint(breakpoint.id!),
480+
]);
480481
}
481482

482483
@override

dwds/test/hot_reload_breakpoints_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ void main() {
418418
// the old string still as the closure has not been reevaluated.
419419
await callEvaluateAndExpectLog(oldCapturedString);
420420
});
421-
}, timeout: Timeout.factor(2));
421+
}, timeout: Timeout.factor(3));
422422

423423
group('when pause_isolates_on_start is false', () {
424424
late VmService client;

0 commit comments

Comments
 (0)