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