| Index: tests/lib/async/stream_periodic_test.dart
|
| diff --git a/tests/lib/async/stream_periodic_test.dart b/tests/lib/async/stream_periodic_test.dart
|
| index f755d76ef41f9c958ad9afe0839824dd338d27a2..b333966065bd78c19ff70e73ec83c92227443e96 100644
|
| --- a/tests/lib/async/stream_periodic_test.dart
|
| +++ b/tests/lib/async/stream_periodic_test.dart
|
| @@ -16,10 +16,7 @@ main() {
|
| subscription = stream.listen(expectAsync((data) {
|
| expect(data, isNull);
|
| receivedCount++;
|
| - if (receivedCount == 5) {
|
| - var future = subscription.cancel();
|
| - expect(future, completes);
|
| - }
|
| + if (receivedCount == 5) subscription.cancel();
|
| }, count: 5));
|
| });
|
| }
|
|
|