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(); |