Skip to content

Commit 40c847f

Browse files
authored
test: Log Error On Error (#1760)
* test: Log Error On Error * chore: type fix * refactor: revert accidental changes from another branch
1 parent 3b19e9c commit 40c847f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

samples/test/externalclient.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ describe('samples for external-account', () => {
290290
},
291291
});
292292
// Confirm expected script output.
293-
assert.match(output, /DNS Info:/);
293+
assert.match(output, /DNS Info:/, output);
294294
});
295295

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

395395
it('should acquire ADC for AWS creds', async () => {
@@ -427,7 +427,7 @@ describe('samples for external-account', () => {
427427
},
428428
});
429429
// Confirm expected script output.
430-
assert.match(output, /DNS Info:/);
430+
assert.match(output, /DNS Info:/, output);
431431
});
432432

433433
it('should acquire ADC for PluggableAuth creds', async () => {
@@ -474,7 +474,7 @@ describe('samples for external-account', () => {
474474
},
475475
});
476476
// Confirm expected script output.
477-
assert.match(output, /DNS Info:/);
477+
assert.match(output, /DNS Info:/, output);
478478
});
479479

480480
it('should acquire access token with service account impersonation options', async () => {

src/auth/oauth2client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ export class OAuth2Client extends AuthClient {
854854

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

0 commit comments

Comments
 (0)