Index: sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_without_a_refresh_token_authenticates_again_test.dart |
diff --git a/sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_without_a_refresh_token_authenticates_again_test.dart b/sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_without_a_refresh_token_authenticates_again_test.dart |
index 496e42cf32739ab62ac97779831564b2f68530aa..d35b87f36e0d9841bf981c13a984f582a04b2dcd 100644 |
--- a/sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_without_a_refresh_token_authenticates_again_test.dart |
+++ b/sdk/lib/_internal/pub/test/oauth2/with_an_expired_credentials_without_a_refresh_token_authenticates_again_test.dart |
@@ -23,8 +23,8 @@ main() { |
var pub = startPublish(server); |
confirmPublish(pub); |
- expect(pub.nextErrLine(), completion(equals("Pub's authorization to upload " |
- "packages has expired and can't be automatically refreshed."))); |
+ pub.stderr.expect("Pub's authorization to upload packages has expired and " |
+ "can't be automatically refreshed."); |
authorizePub(pub, server, "new access token"); |
server.handle('GET', '/api/packages/versions/new', (request) { |