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

Unified Diff: utils/tests/pub/oauth2_test.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
Index: utils/tests/pub/oauth2_test.dart
diff --git a/utils/tests/pub/oauth2_test.dart b/utils/tests/pub/oauth2_test.dart
index 33c9de2f69cd516247d0c3f4b910d2a49baa178c..e739a96adaa21707d87d6e3b71c6de4dd23edf37 100644
--- a/utils/tests/pub/oauth2_test.dart
+++ b/utils/tests/pub/oauth2_test.dart
@@ -27,7 +27,7 @@ main() {
expect(request.headers.value('authorization'),
equals('Bearer access token'));
- response.outputStream.close();
+ return closeHttpResponse(request, response);
});
pub.kill();
@@ -46,7 +46,7 @@ main() {
expect(request.headers.value('authorization'),
equals('Bearer access token'));
- response.outputStream.close();
+ return closeHttpResponse(request, response);
});
pub.kill();
@@ -83,7 +83,7 @@ main() {
expect(request.headers.value('authorization'),
equals('Bearer new access token'));
- response.outputStream.close();
+ return closeHttpResponse(request, response);
});
pub.shouldExit();
@@ -111,7 +111,7 @@ main() {
expect(request.headers.value('authorization'),
equals('Bearer new access token'));
- response.outputStream.close();
+ return closeHttpResponse(request, response);
});
pub.kill();
@@ -135,7 +135,7 @@ main() {
expect(request.headers.value('authorization'),
equals('Bearer new access token'));
- response.outputStream.close();
+ return closeHttpResponse(request, response);
});
pub.kill();

Powered by Google App Engine
This is Rietveld 408576698