Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: tests/lib/async/stream_subscription_as_future_test.dart

Issue 16125005: Make new StreamController be async by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/async/stream_state_test.dart ('k') | tests/lib/async/stream_transform_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5be8f7951bec3e20b2d7aad41df63b648df8433c..3c2c082ddeffe0045ab3788ef292e7a84fad847f 100644
--- a/tests/lib/async/stream_subscription_as_future_test.dart
+++ b/tests/lib/async/stream_subscription_as_future_test.dart
@@ -20,7 +20,7 @@ main() {
});
test("subscription.asStream success2", () {
- StreamController controller = new StreamController();
+ StreamController controller = new StreamController(sync: true);
[1, 2, 3].forEach(controller.add);
controller.close();
Stream stream = controller.stream;
@@ -41,7 +41,7 @@ main() {
});
test("subscription.asStream failure", () {
- StreamController controller = new StreamController();
+ StreamController controller = new StreamController(sync: true);
[1, 2, 3].forEach(controller.add);
controller.addError("foo");
controller.close();
« no previous file with comments | « tests/lib/async/stream_state_test.dart ('k') | tests/lib/async/stream_transform_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698