Index: utils/tests/pub/oauth2_test.dart |
diff --git a/utils/tests/pub/oauth2_test.dart b/utils/tests/pub/oauth2_test.dart |
index d8d867a66bd484bcc4a4ea3376bb42e54833df6c..fdbf92bd341d2378e11dd2be7be2065890d718a0 100644 |
--- a/utils/tests/pub/oauth2_test.dart |
+++ b/utils/tests/pub/oauth2_test.dart |
@@ -32,7 +32,7 @@ main() { |
expect(request.headers.value('authorization'), |
equals('Bearer access token')); |
- return closeHttpResponse(request, response); |
+ response.outputStream.close(); |
}); |
pub.kill(); |
@@ -51,7 +51,7 @@ main() { |
expect(request.headers.value('authorization'), |
equals('Bearer access token')); |
- return closeHttpResponse(request, response); |
+ response.outputStream.close(); |
}); |
pub.kill(); |
@@ -88,7 +88,7 @@ main() { |
expect(request.headers.value('authorization'), |
equals('Bearer new access token')); |
- return closeHttpResponse(request, response); |
+ response.outputStream.close(); |
}); |
pub.shouldExit(); |
@@ -116,7 +116,7 @@ main() { |
expect(request.headers.value('authorization'), |
equals('Bearer new access token')); |
- return closeHttpResponse(request, response); |
+ response.outputStream.close(); |
}); |
pub.kill(); |
@@ -140,7 +140,7 @@ main() { |
expect(request.headers.value('authorization'), |
equals('Bearer new access token')); |
- return closeHttpResponse(request, response); |
+ response.outputStream.close(); |
}); |
pub.kill(); |