Skip to content

Commit c0c8be8

Browse files
authored
Merge pull request #5401 from hayemaxi/tech-debt
fix tech debt tests
2 parents 164ed36 + 6223893 commit c0c8be8

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -223,20 +223,6 @@ export class AuthUtil {
223223
return this.secondaryAuth.useNewConnection(conn)
224224
}
225225

226-
/**
227-
* HACK: Use the connection, but then mark it as expired.
228-
* We currently only need this to handle an edge case with the transition
229-
* from the old to new standalone extension. This should eventually be removed.
230-
*/
231-
public async useConnectionButExpire(conn: Connection) {
232-
await this.secondaryAuth.useNewConnection(conn)
233-
if (conn.type !== 'sso') {
234-
return
235-
}
236-
await this.auth.expireConnection(conn)
237-
await this.notifyReauthenticate()
238-
}
239-
240226
public static get instance() {
241227
if (this.#instance !== undefined) {
242228
return this.#instance

packages/core/src/test/techdebt.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,9 @@ describe('tech debt', function () {
4040
)
4141
})
4242

43-
it('remove missing Amazon Q scopes edge case handling', async function () {
44-
fixByDate('2024-07-30', 'Remove the edge case code from the commit that this test is a part of.')
45-
})
46-
4743
it('remove separate sessions login edge cases', async function () {
4844
// src/auth/auth.ts:SessionSeparationPrompt
4945
// forgetConnection() function and calls
50-
fixByDate('2024-07-30', 'Remove the edge case code from the commit that this test is a part of.')
46+
fixByDate('2024-08-30', 'Remove the edge case code from the commit that this test is a part of.')
5147
})
5248
})

0 commit comments

Comments
 (0)