| Index: tests/lib/async/catch_errors.dart
|
| diff --git a/tests/lib/async/catch_errors.dart b/tests/lib/async/catch_errors.dart
|
| index c289690eb1741570891668144f9f222ab04e4b66..ec11859fd427758ea4ef141c6e135a0c855ff891 100644
|
| --- a/tests/lib/async/catch_errors.dart
|
| +++ b/tests/lib/async/catch_errors.dart
|
| @@ -10,20 +10,10 @@ Stream catchErrors(void body()) {
|
| return true;
|
| }
|
|
|
| - void onDone() {
|
| - controller.close();
|
| - }
|
| -
|
| void onListen() {
|
| - runZonedExperimental(body, onError: onError, onDone: onDone);
|
| + runZoned(body, onError: onError);
|
| }
|
|
|
| controller = new StreamController(onListen: onListen);
|
| return controller.stream;
|
| }
|
| -
|
| -Future waitForCompletion(void body()) {
|
| - Completer completer = new Completer.sync();
|
| - runZonedExperimental(body, onDone: completer.complete);
|
| - return completer.future;
|
| -}
|
|
|