diff --git a/pkgs/coverage/CHANGELOG.md b/pkgs/coverage/CHANGELOG.md index 2c7140215..11375a1cf 100644 --- a/pkgs/coverage/CHANGELOG.md +++ b/pkgs/coverage/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.16.2-wip + +- Use `getVersion()` instead of `getVM()` when pinging the VM service API. + ## 1.16.1 - Fix `HitMap.parseFiles` to allow empty `{}` coverage files written by diff --git a/pkgs/coverage/lib/src/collect.dart b/pkgs/coverage/lib/src/collect.dart index b53e0b115..8a8cc8625 100644 --- a/pkgs/coverage/lib/src/collect.dart +++ b/pkgs/coverage/lib/src/collect.dart @@ -96,7 +96,7 @@ Future> collect( log: StdoutLog(), disposeHandler: socket.close, ); - await service.getVM().timeout(_retryInterval); + await service.getVersion().timeout(_retryInterval); } on TimeoutException { // The signature changed in vm_service version 6.0.0. // ignore: await_only_futures diff --git a/pkgs/coverage/pubspec.yaml b/pkgs/coverage/pubspec.yaml index 29420aeb9..0604d9016 100644 --- a/pkgs/coverage/pubspec.yaml +++ b/pkgs/coverage/pubspec.yaml @@ -1,5 +1,5 @@ name: coverage -version: 1.16.1 +version: 1.16.2-wip description: Coverage data manipulation and formatting repository: https://github.com/dart-lang/tools/tree/main/pkgs/coverage issue_tracker: https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Acoverage