Skip to content

Commit e9c2d40

Browse files
committed
Fix failing unit test
1 parent 47e126f commit e9c2d40

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/amazonq/test/unit/amazonq/backend_amazonq.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ describe('Amazon Q Login', async function () {
9999
})
100100
})
101101

102-
it('signs out of reauth and emits telemetry', async function () {
102+
it.only('signs out of reauth and emits telemetry', async function () {
103+
await getStartUrl.connectToEnterpriseSso(startUrl, region)
104+
103105
await backend.signout()
104106

105107
assert.ok(!AuthUtil.instance.isConnected())

packages/core/src/codewhisperer/util/authUtil.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export class AuthUtil implements IAuthProvider {
8282
})
8383
}
8484

85+
// Do NOT use this in production code, only used for testing
8586
static destroy(): void {
8687
this.#instance = undefined as any
8788
}

0 commit comments

Comments
 (0)