Skip to content

Commit

Permalink
test: Log Error On Error (#1760)
Browse files Browse the repository at this point in the history
* test: Log Error On Error

* chore: type fix

* refactor: revert accidental changes from another branch
  • Loading branch information
d-goog authored Feb 26, 2024
1 parent 3b19e9c commit 40c847f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions samples/test/externalclient.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ describe('samples for external-account', () => {
},
});
// Confirm expected script output.
assert.match(output, /DNS Info:/);
assert.match(output, /DNS Info:/, output);
});

it('should sign the blobs with IAM credentials API', async () => {
Expand Down Expand Up @@ -389,7 +389,7 @@ describe('samples for external-account', () => {
},
});
// Confirm expected script output.
assert.match(output, /DNS Info:/);
assert.match(output, /DNS Info:/, output);
});

it('should acquire ADC for AWS creds', async () => {
Expand Down Expand Up @@ -427,7 +427,7 @@ describe('samples for external-account', () => {
},
});
// Confirm expected script output.
assert.match(output, /DNS Info:/);
assert.match(output, /DNS Info:/, output);
});

it('should acquire ADC for PluggableAuth creds', async () => {
Expand Down Expand Up @@ -474,7 +474,7 @@ describe('samples for external-account', () => {
},
});
// Confirm expected script output.
assert.match(output, /DNS Info:/);
assert.match(output, /DNS Info:/, output);
});

it('should acquire access token with service account impersonation options', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/auth/oauth2client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ export class OAuth2Client extends AuthClient {

protected async getRequestMetadataAsync(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
url?: string | null
url?: string | URL | null
): Promise<RequestMetadataResponse> {
const thisCreds = this.credentials;
if (
Expand Down

0 comments on commit 40c847f

Please sign in to comment.