commit | 8f7d78d7301e57bef06bfba9eb5bc796f076ddc5 | [log] [tgz] |
---|---|---|
author | Aleksei Yu. Semenov <a.semenov@unipro.ru> | Tue Nov 01 09:57:51 2016 |
committer | Aleksei Yu. Semenov <a.semenov@unipro.ru> | Tue Nov 01 09:57:51 2016 |
tree | 442f182670c1f4f4aa3fed306c95070a0dc04063 | |
parent | d741038414d0a2447e130d3866f4f72c8d9e106b [diff] |
bug fix in test
diff --git a/LibTest/isolate/Isolate/spawn_A03_t01.dart b/LibTest/isolate/Isolate/spawn_A03_t01.dart index a2590ad..3382392 100644 --- a/LibTest/isolate/Isolate/spawn_A03_t01.dart +++ b/LibTest/isolate/Isolate/spawn_A03_t01.dart
@@ -31,6 +31,7 @@ if (testPassed){ asyncEnd(); } + receivePort.close(); } main() {
diff --git a/LibTest/isolate/Isolate/spawn_A03_t02.dart b/LibTest/isolate/Isolate/spawn_A03_t02.dart index e360897..c598e0f 100644 --- a/LibTest/isolate/Isolate/spawn_A03_t02.dart +++ b/LibTest/isolate/Isolate/spawn_A03_t02.dart
@@ -26,6 +26,9 @@ main() { asyncStart(); ReceivePort receivePort = new ReceivePort(); - receivePort.listen((_) => asyncEnd()); + receivePort.listen((_) { + asyncEnd(); + receivePort.close(); + }); Isolate.spawn(entryPoint, receivePort.sendPort, paused: false); }