Index: tests/standalone/io/http_server_idle_timeout_test.dart |
diff --git a/tests/standalone/io/http_server_idle_timeout_test.dart b/tests/standalone/io/http_server_idle_timeout_test.dart |
index 5673bfc3cbeb2beb8bb63d7dea70b1f07e9a20a5..247bb6fcce26cbc39752fbd66efd87379f70dc42 100644 |
--- a/tests/standalone/io/http_server_idle_timeout_test.dart |
+++ b/tests/standalone/io/http_server_idle_timeout_test.dart |
@@ -11,7 +11,6 @@ import "dart:async"; |
import "dart:io"; |
import "dart:isolate"; |
- |
void testTimeoutAfterRequest() { |
HttpServer.bind("127.0.0.1", 0).then((server) { |
server.idleTimeout = null; |
@@ -24,12 +23,10 @@ void testTimeoutAfterRequest() { |
Socket.connect("127.0.0.1", server.port).then((socket) { |
var data = "GET / HTTP/1.1\r\nContent-Length: 0\r\n\r\n"; |
socket.write(data); |
- socket.listen( |
- null, |
- onDone: () { |
- socket.close(); |
- server.close(); |
- }); |
+ socket.listen(null, onDone: () { |
+ socket.close(); |
+ server.close(); |
+ }); |
}); |
}); |
} |
@@ -41,12 +38,10 @@ void testTimeoutBeforeRequest() { |
server.listen((request) => request.response.close()); |
Socket.connect("127.0.0.1", server.port).then((socket) { |
- socket.listen( |
- null, |
- onDone: () { |
- socket.close(); |
- server.close(); |
- }); |
+ socket.listen(null, onDone: () { |
+ socket.close(); |
+ server.close(); |
+ }); |
}); |
}); |
} |