| Index: tests/lib/async/slow_consumer_test.dart
|
| diff --git a/tests/lib/async/slow_consumer_test.dart b/tests/lib/async/slow_consumer_test.dart
|
| index f4f6ef54a982404002058ec61319d056c19d51d1..8fd6d8feed3ea9bc38a44405ecb786fb8da74dc4 100644
|
| --- a/tests/lib/async/slow_consumer_test.dart
|
| +++ b/tests/lib/async/slow_consumer_test.dart
|
| @@ -6,9 +6,9 @@
|
|
|
| library slow_consumer_test;
|
|
|
| +import 'package:async_helper/async_helper.dart';
|
| import "package:expect/expect.dart";
|
| import 'dart:async';
|
| -import 'dart:isolate';
|
|
|
| const int KB = 1024;
|
| const int MB = KB * KB;
|
| @@ -109,7 +109,7 @@ class DataProvider {
|
| }
|
|
|
| main() {
|
| - var port = new ReceivePort();
|
| + asyncStart();
|
| // The data provider can deliver 800MB/s of data. It sends 100MB of data to
|
| // the slower consumer who can only read 200MB/s. The data is sent in 1MB
|
| // chunks.
|
| @@ -121,7 +121,7 @@ main() {
|
| new DataProvider(800 * MB, 100 * MB, 1 * MB).stream
|
| .pipe(new SlowConsumer(200 * MB))
|
| .then((count) {
|
| - port.close();
|
| Expect.equals(100 * MB, count);
|
| + asyncEnd();
|
| });
|
| }
|
|
|