Fix chrome coverage hanging (#1457)
diff --git a/pkgs/test/CHANGELOG.md b/pkgs/test/CHANGELOG.md
index c29d94e..6ebfe94 100644
--- a/pkgs/test/CHANGELOG.md
+++ b/pkgs/test/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.16.8
+
+* Fix an issue where coverage collection could hang on Chrome.
+
## 1.16.7
* Update `spawnHybridCode` to default to the current packages language version.
diff --git a/pkgs/test/lib/src/runner/browser/chrome.dart b/pkgs/test/lib/src/runner/browser/chrome.dart
index ea2fe02..a387551 100644
--- a/pkgs/test/lib/src/runner/browser/chrome.dart
+++ b/pkgs/test/lib/src/runner/browser/chrome.dart
@@ -113,7 +113,7 @@
(scriptId) => _sourceMapProvider(scriptId, httpClient),
_sourceUriProvider,
);
- httpClient.close();
+ httpClient.close(force: true);
return coverage;
}
diff --git a/pkgs/test/pubspec.yaml b/pkgs/test/pubspec.yaml
index 1c26f16..e6663d9 100644
--- a/pkgs/test/pubspec.yaml
+++ b/pkgs/test/pubspec.yaml
@@ -1,5 +1,5 @@
name: test
-version: 1.16.7
+version: 1.16.8
description: A full featured library for writing and running Dart tests.
repository: https://github.com/dart-lang/test/blob/master/pkgs/test