Merge pull request #1196 from dart-lang/roll_package_vm_service
Update to support package:vm_service version 4.0.0
diff --git a/pkgs/test/CHANGELOG.md b/pkgs/test/CHANGELOG.md
index ef24aed..f2e4f65 100644
--- a/pkgs/test/CHANGELOG.md
+++ b/pkgs/test/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.14.2
+
+* Update `test_core` to `0.3.3`.
+
## 1.14.1
* Allow the latest shelf_packages_handler.
diff --git a/pkgs/test/pubspec.yaml b/pkgs/test/pubspec.yaml
index 1b477fe..cafa909 100644
--- a/pkgs/test/pubspec.yaml
+++ b/pkgs/test/pubspec.yaml
@@ -1,5 +1,5 @@
name: test
-version: 1.14.1
+version: 1.14.2
description: A full featured library for writing and running Dart tests.
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test
@@ -34,7 +34,7 @@
yaml: ^2.0.0
# Use an exact version until the test_api and test_core package are stable.
test_api: 0.2.15
- test_core: 0.3.2
+ test_core: 0.3.3
dev_dependencies:
fake_async: ^1.0.0
diff --git a/pkgs/test_core/CHANGELOG.md b/pkgs/test_core/CHANGELOG.md
index dcb572a..4e51aba 100644
--- a/pkgs/test_core/CHANGELOG.md
+++ b/pkgs/test_core/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.3.3
+
+* Support latest `package:vm_service`.
+
## 0.3.2
* Drop the `package_resolver` dependency.
diff --git a/pkgs/test_core/lib/src/runner/vm/platform.dart b/pkgs/test_core/lib/src/runner/vm/platform.dart
index 83e4b4f..850ff7c 100644
--- a/pkgs/test_core/lib/src/runner/vm/platform.dart
+++ b/pkgs/test_core/lib/src/runner/vm/platform.dart
@@ -81,7 +81,7 @@
await client.setName(isolateRef.id, path);
var libraryRef = (await client.getIsolate(isolateRef.id))
.libraries
- .firstWhere((library) => library.uri == libraryPath) as LibraryRef;
+ .firstWhere((library) => library.uri == libraryPath);
var url = _observatoryUrlFor(
info.serverUri.toString(), isolateRef.id, libraryRef.id);
environment = VMEnvironment(url, isolateRef, client);
diff --git a/pkgs/test_core/pubspec.yaml b/pkgs/test_core/pubspec.yaml
index 6646ea8..12eed55 100644
--- a/pkgs/test_core/pubspec.yaml
+++ b/pkgs/test_core/pubspec.yaml
@@ -1,5 +1,5 @@
name: test_core
-version: 0.3.2
+version: 0.3.3
description: A basic library for writing tests and running them on the VM.
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_core
@@ -24,7 +24,7 @@
source_span: ^1.4.0
stack_trace: ^1.9.0
stream_channel: ">=1.7.0 <3.0.0"
- vm_service: '>=1.0.0 <4.0.0'
+ vm_service: '>=1.0.0 <5.0.0'
yaml: ^2.0.0
# Use a tight version constraint to ensure that a constraint on matcher
# properly constrains all features it provides.