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

Unified Diff: test/server/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 | « test/client/stream_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/server/stream_test.dart
diff --git a/test/server/stream_test.dart b/test/server/stream_test.dart
index a7a2d8652701a8a945acc2f49c06528bbac7da94..8fd12396f859643a807f9c83cdd4bfc4ec817766 100644
--- a/test/server/stream_test.dart
+++ b/test/server/stream_test.dart
@@ -81,7 +81,10 @@ void main() {
requestController.stream, responseController.sink);
expect(server.listen(), completes);
+
+ expect(server.isClosed, isFalse);
expect(server.close(), completes);
+ expect(server.isClosed, isTrue);
expect(() => requestController.stream.listen((_) {}), throwsStateError);
expect(responseController.isClosed, isTrue);
« no previous file with comments | « test/client/stream_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698