| Index: utils/tests/pub/oauth2_test.dart
|
| diff --git a/utils/tests/pub/oauth2_test.dart b/utils/tests/pub/oauth2_test.dart
|
| index 4529760e8ca050c12178d397906ef35b9c938962..e5ff4bcaef810e117a4bbc2b3374a7ecba496b87 100644
|
| --- a/utils/tests/pub/oauth2_test.dart
|
| +++ b/utils/tests/pub/oauth2_test.dart
|
| @@ -64,7 +64,7 @@ main() {
|
| confirmPublish(pub);
|
|
|
| server.handle('POST', '/token', (request, response) {
|
| - return wrapInputStream(request.inputStream).toBytes().then((bytes) {
|
| + return consumeInputStream(request.inputStream).then((bytes) {
|
| var body = new String.fromCharCodes(bytes);
|
| expect(body, matches(
|
| new RegExp(r'(^|&)refresh_token=refresh\+token(&|$)')));
|
| @@ -198,7 +198,7 @@ void authorizePub(ScheduledProcess pub, ScheduledServer server,
|
|
|
| void handleAccessTokenRequest(ScheduledServer server, String accessToken) {
|
| server.handle('POST', '/token', (request, response) {
|
| - return wrapInputStream(request.inputStream).toBytes().then((bytes) {
|
| + return consumeInputStream(request.inputStream).then((bytes) {
|
| var body = new String.fromCharCodes(bytes);
|
| expect(body, matches(new RegExp(r'(^|&)code=access\+code(&|$)')));
|
|
|
|
|