Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1052)

Unified Diff: tests/standalone/io/https_unauthorized_client.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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'));
}

Powered by Google App Engine
This is Rietveld 408576698