Index: tests/standalone/io/secure_unauthorized_client.dart |
diff --git a/tests/standalone/io/secure_unauthorized_client.dart b/tests/standalone/io/secure_unauthorized_client.dart |
index 10392f262c6682f344d2721bc11b6770abc28a7f..f08e92b46cc48d34183cad47ac1d4da7bb9691b5 100644 |
--- a/tests/standalone/io/secure_unauthorized_client.dart |
+++ b/tests/standalone/io/secure_unauthorized_client.dart |
@@ -30,19 +30,17 @@ const HOST_NAME = "localhost"; |
Future runClients(int port) { |
var testFutures = []; |
for (int i = 0; i < 20; ++i) { |
- testFutures.add( |
- SecureSocket.connect(HOST_NAME, port, context: clientContext) |
- .then((SecureSocket socket) { |
- expect(false); |
- }, onError: (e) { |
- expect(e is HandshakeException || e is SocketException); |
- })); |
+ testFutures.add(SecureSocket |
+ .connect(HOST_NAME, port, context: clientContext) |
+ .then((SecureSocket socket) { |
+ expect(false); |
+ }, onError: (e) { |
+ expect(e is HandshakeException || e is SocketException); |
+ })); |
} |
return Future.wait(testFutures); |
} |
- |
void main(List<String> args) { |
- runClients(int.parse(args[0])) |
- .then((_) => print('SUCCESS')); |
+ runClients(int.parse(args[0])).then((_) => print('SUCCESS')); |
} |