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