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

Unified Diff: tests/standalone/io/http_server_close_response_after_error_test.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/http_server_close_response_after_error_test.dart
diff --git a/tests/standalone/io/http_server_close_response_after_error_test.dart b/tests/standalone/io/http_server_close_response_after_error_test.dart
index f768325960eaeeab4899f42d50f5f1162a5d6b4c..9230177cc66abf4985c2f848bee288c50923e903 100644
--- a/tests/standalone/io/http_server_close_response_after_error_test.dart
+++ b/tests/standalone/io/http_server_close_response_after_error_test.dart
@@ -14,24 +14,18 @@ import 'dart:io';
const CLIENT_SCRIPT = "http_server_close_response_after_error_client.dart";
void main() {
- HttpServer.bind("127.0.0.1", 0)
- .then((server) {
- server.listen(
- (request) {
- request.listen(
- null,
- onError: (e) {},
- onDone: () {
- request.response.close();
- });
- });
- Process.run(Platform.executable,
- [Platform.script.resolve(CLIENT_SCRIPT).toString(),
- server.port.toString()])
- .then((result) {
- if (result.exitCode != 0) throw "Bad exit code";
- server.close();
- });
+ HttpServer.bind("127.0.0.1", 0).then((server) {
+ server.listen((request) {
+ request.listen(null, onError: (e) {}, onDone: () {
+ request.response.close();
});
+ });
+ Process.run(Platform.executable, [
+ Platform.script.resolve(CLIENT_SCRIPT).toString(),
+ server.port.toString()
+ ]).then((result) {
+ if (result.exitCode != 0) throw "Bad exit code";
+ server.close();
+ });
+ });
}
-

Powered by Google App Engine
This is Rietveld 408576698