Index: tests/standalone/io/testing_server.dart |
diff --git a/tests/standalone/io/testing_server.dart b/tests/standalone/io/testing_server.dart |
index e5be734c59153a703719be4dbcf80f257296b866..189939986c5b1e89e690e6b7f549d05af6caed91 100644 |
--- a/tests/standalone/io/testing_server.dart |
+++ b/tests/standalone/io/testing_server.dart |
@@ -5,12 +5,11 @@ |
part of ServerTest; |
abstract class TestingServer { |
- |
static const HOST = "127.0.0.1"; |
static const INIT = 0; |
static const SHUTDOWN = -1; |
- void onConnection(Socket connection); // Abstract. |
+ void onConnection(Socket connection); // Abstract. |
void errorHandlerServer(e, trace) { |
String msg = "Server socket error $e"; |
@@ -22,12 +21,12 @@ abstract class TestingServer { |
Future<int> init() { |
_closePort = new ReceivePort(); |
- _closePort.first.then((_) { close(); }); |
+ _closePort.first.then((_) { |
+ close(); |
+ }); |
return ServerSocket.bind(HOST, 0).then((server) { |
_server = server; |
- _server.listen( |
- onConnection, |
- onError: errorHandlerServer); |
+ _server.listen(onConnection, onError: errorHandlerServer); |
return _server.port; |
}); |
} |