diff --git a/CHANGELOG.md b/CHANGELOG.md index 043828c42..7d3e53a3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.12.24+6 + +* Small refactoring to make the package compatible with strong-mode compliant Zone API. + No user-visible change. + ## 0.12.24+5 * Expose a way for tests to forward a `loadException` to the server. diff --git a/lib/src/runner/load_suite.dart b/lib/src/runner/load_suite.dart index d8194ddfa..308357a4b 100644 --- a/lib/src/runner/load_suite.dart +++ b/lib/src/runner/load_suite.dart @@ -159,7 +159,10 @@ class LoadSuite extends Suite implements RunnerSuite { if (pair == null) return null; var zone = pair.last; - var newSuite = zone.runUnaryGuarded(change, pair.first); + var newSuite; + zone.runGuarded(() { + newSuite = change(pair.first); + }); return newSuite == null ? null : new Pair(newSuite, zone); })); } diff --git a/pubspec.yaml b/pubspec.yaml index 327f31e5f..5a038af39 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: test -version: 0.12.24+5 +version: 0.12.24+6 author: Dart Team description: A library for writing dart unit tests. homepage: https://github.com/dart-lang/test