| Index: tests/lib/async/stream_from_iterable_test.dart
|
| diff --git a/tests/lib/async/stream_from_iterable_test.dart b/tests/lib/async/stream_from_iterable_test.dart
|
| index 182bf1c7dc300dabae29f021b8203466775b6d5f..0af493d0576a4bca867d14790b2da6bfa9d0bf0d 100644
|
| --- a/tests/lib/async/stream_from_iterable_test.dart
|
| +++ b/tests/lib/async/stream_from_iterable_test.dart
|
| @@ -62,7 +62,10 @@ main() {
|
| subscription = stream.listen((int value) {
|
| actual.add(value);
|
| // Do a 10 ms pause during the playback of the iterable.
|
| - if (value == 20) { subscription.pause(new Future.delayed(10, () {})); }
|
| + Duration duration = const Duration(milliseconds: 10);
|
| + if (value == 20) {
|
| + subscription.pause(new Future.delayed(duration, () {}));
|
| + }
|
| }, onDone: expectAsync0(() {
|
| actual.close();
|
| Events expected = new Events.fromIterable(iter);
|
|
|