| Index: tests/standalone/io/socket_cross_process_test.dart
|
| diff --git a/tests/standalone/io/socket_cross_process_test.dart b/tests/standalone/io/socket_cross_process_test.dart
|
| index d6899c6a46eafb5dbd3b01d54172c9d16e9c58f7..66798ad7c6c421c765bd45323f2bf216d1843966 100644
|
| --- a/tests/standalone/io/socket_cross_process_test.dart
|
| +++ b/tests/standalone/io/socket_cross_process_test.dart
|
| @@ -34,11 +34,15 @@ Future makeServer() {
|
| }
|
|
|
| Future runClientProcess(int port) {
|
| - return Process.run(Platform.executable,
|
| - []..addAll(Platform.executableArguments)
|
| - ..add(Platform.script.toFilePath())
|
| - ..add('--client')
|
| - ..add(port.toString())).then((ProcessResult result) {
|
| + return Process
|
| + .run(
|
| + Platform.executable,
|
| + []
|
| + ..addAll(Platform.executableArguments)
|
| + ..add(Platform.script.toFilePath())
|
| + ..add('--client')
|
| + ..add(port.toString()))
|
| + .then((ProcessResult result) {
|
| if (result.exitCode != 0 || !result.stdout.contains('SUCCESS')) {
|
| print("Client failed, exit code ${result.exitCode}");
|
| print(" stdout:");
|
| @@ -52,7 +56,7 @@ Future runClientProcess(int port) {
|
|
|
| runClient(int port) {
|
| Socket.connect(InternetAddress.LOOPBACK_IP_V4, port).then((connection) {
|
| - connection.listen((_) { }, onDone: () => print('SUCCESS'));
|
| + connection.listen((_) {}, onDone: () => print('SUCCESS'));
|
| connection.close();
|
| });
|
| }
|
|
|