| Index: pkg/async_helper/fletch.patch
|
| diff --git a/pkg/async_helper/fletch.patch b/pkg/async_helper/fletch.patch
|
| deleted file mode 100644
|
| index 9d3694ae7793b3deecd224baafbe792a2b5e8efe..0000000000000000000000000000000000000000
|
| --- a/pkg/async_helper/fletch.patch
|
| +++ /dev/null
|
| @@ -1,49 +0,0 @@
|
| -diff --git a/../dart/pkg/async_helper/lib/async_helper.dart b/pkg/async_helper/lib/async_helper.dart
|
| -index 37496bc..1b8acf4 100644
|
| ---- a/../dart/pkg/async_helper/lib/async_helper.dart
|
| -+++ b/pkg/async_helper/lib/async_helper.dart
|
| -@@ -27,16 +27,22 @@ library async_helper;
|
| - // 'dart:isolate' (i.e. it is in particular problematic with dart2js).
|
| - // It would be nice if we could use a different mechanism for different
|
| - // runtimes.
|
| --import 'dart:isolate';
|
| -+import 'dart:fletch';
|
| -
|
| - bool _initialized = false;
|
| --ReceivePort _port = null;
|
| -+Port _port = null;
|
| - int _asyncLevel = 0;
|
| -
|
| - Exception _buildException(String msg) {
|
| - return new Exception('Fatal: $msg. This is most likely a bug in your test.');
|
| - }
|
| -
|
| -+void _waitForMessage(Port port) {
|
| -+ Channel channel = new Channel();
|
| -+ port.send(new Port(channel));
|
| -+ channel.receive();
|
| -+}
|
| -+
|
| - /// Call this method before an asynchronous test is created.
|
| - void asyncStart() {
|
| - if (_initialized && _asyncLevel == 0) {
|
| -@@ -46,7 +52,9 @@ void asyncStart() {
|
| - if (!_initialized) {
|
| - print('unittest-suite-wait-for-done');
|
| - _initialized = true;
|
| -- _port = new ReceivePort();
|
| -+ var channel = new Channel();
|
| -+ Process.spawn(_waitForMessage, new Port(channel));
|
| -+ _port = channel.receive();
|
| - }
|
| - _asyncLevel++;
|
| - }
|
| -@@ -63,7 +71,7 @@ void asyncEnd() {
|
| - }
|
| - _asyncLevel--;
|
| - if (_asyncLevel == 0) {
|
| -- _port.close();
|
| -+ _port.send(null);
|
| - _port = null;
|
| - print('unittest-suite-success');
|
| - }
|
|
|