Index: tests/standalone/io/socket_test.dart |
diff --git a/tests/standalone/io/socket_test.dart b/tests/standalone/io/socket_test.dart |
index beec587ce5f3b3d608dd2181885e68b0a9a8ec6b..56a76bbaa98fd866aab01982739fe255eb81a1de 100644 |
--- a/tests/standalone/io/socket_test.dart |
+++ b/tests/standalone/io/socket_test.dart |
@@ -210,8 +210,22 @@ void testConnectStreamDataCloseCancel(bool useDestroy) { |
}); |
} |
-main() { |
+void testCloseWriteNoListen() { |
asyncStart(); |
+ ServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, 0).then((server) { |
+ server.listen( |
+ (client) { |
+ client.close(); |
+ }); |
+ Socket.connect("127.0.0.1", server.port).then((socket) { |
+ socket.close(); |
+ server.close(); |
+ asyncEnd(); |
+ }); |
+ }); |
+} |
+ |
+main() { |
testArguments(); |
testSimpleBind(); |
testInvalidBind(); |
@@ -224,5 +238,5 @@ main() { |
testConnectStreamDataClose(false); |
testConnectStreamDataCloseCancel(true); |
testConnectStreamDataCloseCancel(false); |
- asyncEnd(); |
+ testCloseWriteNoListen(); |
} |