| Index: tests/lib/async/stream_subscription_as_future_test.dart
|
| diff --git a/tests/lib/async/stream_subscription_as_future_test.dart b/tests/lib/async/stream_subscription_as_future_test.dart
|
| index 3c2c082ddeffe0045ab3788ef292e7a84fad847f..b33f74d33adba00b95373a941b406530810c65be 100644
|
| --- a/tests/lib/async/stream_subscription_as_future_test.dart
|
| +++ b/tests/lib/async/stream_subscription_as_future_test.dart
|
| @@ -14,7 +14,7 @@ main() {
|
| Stream stream = new Stream.fromIterable([1, 2, 3]);
|
| var output = [];
|
| var subscription = stream.listen((x) { output.add(x); });
|
| - subscription.asFuture(output).then(expectAsync1((o) {
|
| + subscription.asFuture(output).then(expectAsync((o) {
|
| Expect.listEquals([1, 2, 3], o);
|
| }));
|
| });
|
| @@ -26,7 +26,7 @@ main() {
|
| Stream stream = controller.stream;
|
| var output = [];
|
| var subscription = stream.listen((x) { output.add(x); });
|
| - subscription.asFuture(output).then(expectAsync1((o) {
|
| + subscription.asFuture(output).then(expectAsync((o) {
|
| Expect.listEquals([1, 2, 3], o);
|
| }));
|
| });
|
| @@ -35,7 +35,7 @@ main() {
|
| Stream stream = new Stream.fromIterable([1, 2, 3]).map((x) => x);
|
| var output = [];
|
| var subscription = stream.listen((x) { output.add(x); });
|
| - subscription.asFuture(output).then(expectAsync1((o) {
|
| + subscription.asFuture(output).then(expectAsync((o) {
|
| Expect.listEquals([1, 2, 3], o);
|
| }));
|
| });
|
| @@ -48,7 +48,7 @@ main() {
|
| Stream stream = controller.stream;
|
| var output = [];
|
| var subscription = stream.listen((x) { output.add(x); });
|
| - subscription.asFuture(output).catchError(expectAsync1((error) {
|
| + subscription.asFuture(output).catchError(expectAsync((error) {
|
| Expect.equals(error, "foo");
|
| }));
|
| });
|
| @@ -61,7 +61,7 @@ main() {
|
| });
|
| var output = [];
|
| var subscription = stream.listen((x) { output.add(x); });
|
| - subscription.asFuture(output).catchError(expectAsync1((error) {
|
| + subscription.asFuture(output).catchError(expectAsync((error) {
|
| Expect.equals(error, "foo");
|
| }));
|
| });
|
|
|