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

Unified Diff: test/client/stream_test.dart

Issue 1328503003: Add Server.isClosed and Client.isClosed. (Closed) Base URL: git@github.com:dart-lang/json_rpc_2.git@master
Patch Set: Code review changes Created 5 years, 3 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 | « pubspec.yaml ('k') | test/server/stream_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/client/stream_test.dart
diff --git a/test/client/stream_test.dart b/test/client/stream_test.dart
index 20b21bde030f1e550bc269172ff6c05afc22f9ad..ba5db5bc32c4fbb5544348b8386b2761f24bab64 100644
--- a/test/client/stream_test.dart
+++ b/test/client/stream_test.dart
@@ -79,7 +79,10 @@ void main() {
responseController.stream, requestController.sink);
expect(client.listen(), completes);
+
+ expect(client.isClosed, isFalse);
expect(client.close(), completes);
+ expect(client.isClosed, isTrue);
expect(() => responseController.stream.listen((_) {}), throwsStateError);
expect(requestController.isClosed, isTrue);
« no previous file with comments | « pubspec.yaml ('k') | test/server/stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698