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

Unified Diff: test/web_socket_test.dart

Issue 1168803003: Don't double-close a WebSocket in web_socket_test. (Closed) Base URL: git@github.com:dart-lang/http_parser@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/web_socket_test.dart
diff --git a/test/web_socket_test.dart b/test/web_socket_test.dart
index 60934c5dd0be2e5c34a6a9152f344f10bc4daeab..4da985ac4399c7da539a4d17293235b8b2ec7c9a 100644
--- a/test/web_socket_test.dart
+++ b/test/web_socket_test.dart
@@ -14,7 +14,7 @@ void main() {
return HttpServer.bind("localhost", 0).then((server) {
server.transform(new WebSocketTransformer()).listen((webSocket) {
webSocket.add("hello!");
- webSocket.first.then((request) {
+ webSocket.listen((request) {
expect(request, equals("ping"));
webSocket.add("pong");
webSocket.close();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698