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

Unified Diff: test/stream_queue_test.dart

Issue 1238503004: Alternative implementation of StreamQueue.fork which has no impact if it Base URL: https://github.com/dart-lang/async@master
Patch Set: Created 5 years, 5 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 | « lib/src/subscription_fork.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/stream_queue_test.dart
diff --git a/test/stream_queue_test.dart b/test/stream_queue_test.dart
index 3768bffce6e2beeeaef27953a368593b257afdbb..bdf9748c829f14d76541047009c4c6d7adc26dbd 100644
--- a/test/stream_queue_test.dart
+++ b/test/stream_queue_test.dart
@@ -872,7 +872,7 @@ main() {
var queue2 = queue1.fork();
await flushMicrotasks();
- expect(controller.hasListener, isFalse);
+ expect(controller.hasListener, isTrue);
expect(queue1.next, completion(1));
await flushMicrotasks();
@@ -942,7 +942,7 @@ main() {
var queue2 = queue1.fork();
await flushMicrotasks();
- expect(controller.hasListener, isFalse);
+ expect(controller.hasListener, isTrue);
expect(queue1.next, throwsStateError);
await flushMicrotasks();
@@ -1023,7 +1023,7 @@ main() {
var queue2 = queue1.fork();
await flushMicrotasks();
- expect(controller.hasListener, isFalse);
+ expect(controller.hasListener, isTrue);
var sub1 = queue1.rest.listen(null);
await flushMicrotasks();
« no previous file with comments | « lib/src/subscription_fork.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698