Index: tests/standalone/io/issue_22637_test.dart |
diff --git a/tests/standalone/io/issue_22637_test.dart b/tests/standalone/io/issue_22637_test.dart |
index 50aeb398d56a7a80af613908e64573e8697a2b56..2eba30ba2685e6d4df1cb0ba7b987c0fe63db72e 100644 |
--- a/tests/standalone/io/issue_22637_test.dart |
+++ b/tests/standalone/io/issue_22637_test.dart |
@@ -31,10 +31,10 @@ void serverListen(RawSocket serverSide) { |
server.close(); |
} |
} |
+ |
serverSide.listen(serveData); |
} |
- |
void clientListen(RawSocketEvent event) { |
if (event == RawSocketEvent.READ) { |
client.readEventsEnabled = false; |
@@ -50,11 +50,10 @@ void clientListen(RawSocketEvent event) { |
data = client.read(100); |
Expect.isNotNull(data); |
client.close(); |
- }); |
+ }); |
} |
} |
- |
test() async { |
server = await RawServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, 0); |
server.listen(serverListen); |
@@ -62,7 +61,6 @@ test() async { |
client.listen(clientListen); |
} |
- |
void main() { |
test(); |
} |