Index: tests/standalone/io/secure_unauthorized_test.dart |
diff --git a/tests/standalone/io/secure_unauthorized_test.dart b/tests/standalone/io/secure_unauthorized_test.dart |
index b0d8823872acb9ba0720a1651b60c296145b95e7..2b0e986febcf36c76337799d22c911e151b35600 100644 |
--- a/tests/standalone/io/secure_unauthorized_test.dart |
+++ b/tests/standalone/io/secure_unauthorized_test.dart |
@@ -22,16 +22,16 @@ String localFile(path) => Platform.script.resolve(path).toFilePath(); |
SecurityContext serverContext = new SecurityContext() |
..useCertificateChain(localFile('certificates/untrusted_server_chain.pem')) |
..usePrivateKey(localFile('certificates/untrusted_server_key.pem'), |
- password: 'dartdart'); |
+ password: 'dartdart'); |
Future<SecureServerSocket> runServer() { |
- return SecureServerSocket.bind(HOST_NAME, 0, serverContext) |
+ return SecureServerSocket |
+ .bind(HOST_NAME, 0, serverContext) |
.then((SecureServerSocket server) { |
server.listen((SecureSocket socket) { |
- socket.listen((_) { }, |
- onDone: () { |
- socket.close(); |
- }); |
+ socket.listen((_) {}, onDone: () { |
+ socket.close(); |
+ }); |
}, onError: (e) => Expect.isTrue(e is HandshakeException)); |
return server; |
}); |
@@ -41,9 +41,9 @@ void main() { |
var clientScript = localFile('secure_unauthorized_client.dart'); |
Future clientProcess(int port) { |
- return Process.run(Platform.executable, |
- [clientScript, port.toString()]) |
- .then((ProcessResult result) { |
+ return Process |
+ .run(Platform.executable, [clientScript, port.toString()]).then( |
+ (ProcessResult result) { |
if (result.exitCode != 0 || !result.stdout.contains('SUCCESS')) { |
print("Client failed"); |
print(" stdout:"); |