| Index: tests/lib/async/run_async4_test.dart
|
| diff --git a/tests/lib/async/run_async4_test.dart b/tests/lib/async/run_async4_test.dart
|
| index c4a1fc173ea2502c118bee5adc2babe91e639619..26db3901e4f90ef55c249f17947e6b0d42db4a08 100644
|
| --- a/tests/lib/async/run_async4_test.dart
|
| +++ b/tests/lib/async/run_async4_test.dart
|
| @@ -4,6 +4,7 @@
|
|
|
| library run_async_test;
|
|
|
| +import 'package:async_helper/async_helper.dart';
|
| import 'dart:async';
|
| import 'dart:isolate';
|
|
|
| @@ -28,10 +29,15 @@ bool globalErrorHandler(IsolateUnhandledException e) {
|
| }
|
|
|
| main() {
|
| + asyncStart();
|
| var port = new ReceivePort();
|
| var timer;
|
| SendPort otherIsolate = spawnFunction(runTest, globalErrorHandler);
|
| otherIsolate.send(port.toSendPort());
|
| - port.receive((msg, replyPort) { port.close(); timer.cancel(); });
|
| + port.receive((msg, replyPort) {
|
| + port.close();
|
| + timer.cancel();
|
| + asyncEnd();
|
| + });
|
| timer = new Timer(const Duration(seconds: 2), () { throw "failed"; });
|
| }
|
|
|