Index: sdk/lib/_internal/pub/test/oauth2/with_server_rejected_credentials_authenticates_again_test.dart |
diff --git a/sdk/lib/_internal/pub/test/oauth2/with_server_rejected_credentials_authenticates_again_test.dart b/sdk/lib/_internal/pub/test/oauth2/with_server_rejected_credentials_authenticates_again_test.dart |
index 8f9fd0d6064500ac6b931572a9a224fcdb3c727c..8f092d10bd6fa342d26bbf8d3f70ef905d2c90cf 100644 |
--- a/sdk/lib/_internal/pub/test/oauth2/with_server_rejected_credentials_authenticates_again_test.dart |
+++ b/sdk/lib/_internal/pub/test/oauth2/with_server_rejected_credentials_authenticates_again_test.dart |
@@ -32,12 +32,8 @@ main() { |
response.close(); |
}); |
- expect(pub.nextErrLine(), completion(equals('OAuth2 authorization failed ' |
- '(your token sucks).'))); |
- // TODO(rnystrom): The confirm line is run together with this one because |
- // in normal usage, the user will have entered a newline on stdin which |
- // gets echoed to the terminal. Do something better here? |
- expect(pub.nextLine(), completion(equals('Uploading...'))); |
+ pub.stderr.expect('OAuth2 authorization failed (your token sucks).'); |
+ pub.stdout.expect('Uploading...'); |
pub.kill(); |
}); |
} |