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

Unified Diff: tests/standalone/io/raw_secure_server_socket_test.dart

Issue 23896002: Fix errors in dart:io tests found by the analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « tests/standalone/io/http_client_request_test.dart ('k') | tests/standalone/io/raw_socket_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/raw_secure_server_socket_test.dart
diff --git a/tests/standalone/io/raw_secure_server_socket_test.dart b/tests/standalone/io/raw_secure_server_socket_test.dart
index 2ac81618d66a582b632ef7abf3871ecfd1e99c3a..4226b80b8d983832ee555dd7a9ace6130b8b405d 100644
--- a/tests/standalone/io/raw_secure_server_socket_test.dart
+++ b/tests/standalone/io/raw_secure_server_socket_test.dart
@@ -53,15 +53,14 @@ void testInvalidBind() {
RawSecureServerSocket.bind(HOST_NAME,
s.port,
CERTIFICATE).then((t) {
- Expect.fail("Multiple listens on same port");
s.close();
t.close();
- port.toSendPort().send(1);
+ Expect.fail("Multiple listens on same port");
})
.catchError((error) {
Expect.isTrue(error is SocketException);
s.close();
- asyncEnd();
+ asyncEnd();
});
});
}
« no previous file with comments | « tests/standalone/io/http_client_request_test.dart ('k') | tests/standalone/io/raw_socket_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698