Skip to content

Commit

Permalink
Quick fix for verify_prod_pub.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos committed Jun 7, 2024
1 parent 81df033 commit 2474bc1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkg/pub_integration/bin/verify_prod_pub.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,15 @@ Future<TestUser> _initializeUser(
final session = await browser.createSession();
return TestUser(
email: email,
api: PubApiClient(
browserApi: PubApiClient(
pubHostedUrl,
client: http_retry.RetryClient(
createHttpClientWithHeaders(
{'Authorization': 'Bearer $apiAccessToken'},
),
),
),
serverApi: PubApiClient(
pubHostedUrl,
client: http_retry.RetryClient(
createHttpClientWithHeaders(
Expand All @@ -129,7 +137,7 @@ Future<TestUser> _initializeUser(
if (cookies != null && cookies.isNotEmpty) {
await page.setCookies(cookies);
}
await fn(page);
return await fn(page);
});
},
readLatestEmail: () async => _readLastEmail(email, gmailAccessToken),
Expand Down

0 comments on commit 2474bc1

Please sign in to comment.