Index: tests/standalone/io/https_unauthorized_client.dart |
diff --git a/tests/standalone/io/https_unauthorized_client.dart b/tests/standalone/io/https_unauthorized_client.dart |
index 673fdf041a5233dec87400678dabfaae9e46ab72..57d9bc64e57f948eab7c8965b3cd34303a0208c7 100644 |
--- a/tests/standalone/io/https_unauthorized_client.dart |
+++ b/tests/standalone/io/https_unauthorized_client.dart |
@@ -28,22 +28,19 @@ Future runClients(int port) { |
var testFutures = []; |
for (int i = 0; i < 20; ++i) { |
- testFutures.add( |
- client.getUrl(Uri.parse('https://$HOST_NAME:$port/')) |
- .then((HttpClientRequest request) { |
- expect(false, "Request succeeded"); |
- }, onError: (e) { |
- // Remove ArgumentError once null default context is supported. |
- expect(e is HandshakeException || |
- e is SocketException || |
- e is ArgumentError, |
- "Error is wrong type: $e"); |
- })); |
+ testFutures.add(client.getUrl(Uri.parse('https://$HOST_NAME:$port/')).then( |
+ (HttpClientRequest request) { |
+ expect(false, "Request succeeded"); |
+ }, onError: (e) { |
+ // Remove ArgumentError once null default context is supported. |
+ expect( |
+ e is HandshakeException || e is SocketException || e is ArgumentError, |
+ "Error is wrong type: $e"); |
+ })); |
} |
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')); |
} |