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

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

Issue 311153003: Add Observatory test of io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: tests/standalone/io/raw_socket_test.dart
diff --git a/tests/standalone/io/raw_socket_test.dart b/tests/standalone/io/raw_socket_test.dart
index bc537f516ce2740db2331b99df3065349aaca1f3..4acc6ee9503a32ed0f7b6d8494618989a4c20c49 100644
--- a/tests/standalone/io/raw_socket_test.dart
+++ b/tests/standalone/io/raw_socket_test.dart
@@ -23,6 +23,7 @@ void testSimpleBind() {
asyncStart();
RawServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, 0).then((s) {
Expect.isTrue(s.port > 0);
+ s.close();
asyncEnd();
});
}
@@ -56,6 +57,7 @@ void testInvalidBind() {
})
.catchError((error) {
Expect.isTrue(error is SocketException);
+ s.close();
asyncEnd();
});
});

Powered by Google App Engine
This is Rietveld 408576698