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

Unified Diff: utils/tests/pub/test_pub.dart

Issue 11348285: Work around issue 6984. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
« pkg/http/test/utils.dart ('K') | « utils/tests/pub/pub_lish_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index a03b0fec339a74a9988d4eb7589d0d540409ab8c..1e759a0f4df1d06b2fd6281008f1d1e5827cac52 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -105,7 +105,7 @@ void serve([List<Descriptor> contents]) {
} catch (e) {
response.statusCode = 404;
response.contentLength = 0;
- response.outputStream.close();
+ closeHttpResponse(request, response);
return;
}
@@ -114,14 +114,14 @@ void serve([List<Descriptor> contents]) {
response.statusCode = 200;
response.contentLength = data.length;
response.outputStream.write(data);
- response.outputStream.close();
+ closeHttpResponse(request, response);
});
future.handleException((e) {
print("Exception while handling ${request.uri}: $e");
response.statusCode = 500;
response.reasonPhrase = e.message;
- response.outputStream.close();
+ closeHttpResponse(request, response);
});
};
_server.listen("127.0.0.1", 0);
« pkg/http/test/utils.dart ('K') | « utils/tests/pub/pub_lish_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698