Skip to content

Commit 58b50c2

Browse files
committed
retry
1 parent 5796933 commit 58b50c2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/amazonq/test/unit/codewhisperer/commands/onAcceptance.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ import { resetCodeWhispererGlobalVariables, createMockTextEditor } from 'aws-cor
1818
import { assertTelemetryCurried } from 'aws-core-vscode/test'
1919

2020
describe('onAcceptance', function () {
21+
const session = CodeWhispererSessionState.instance.getSession()
2122
describe('onAcceptance', function () {
2223
beforeEach(async function () {
23-
const session = CodeWhispererSessionState.instance.getSession()
2424
await resetCodeWhispererGlobalVariables()
2525
session.reset()
2626
})
2727

2828
afterEach(function () {
29-
const session = CodeWhispererSessionState.instance.getSession()
3029
sinon.restore()
3130
session.reset()
3231
})
@@ -72,7 +71,6 @@ describe('onAcceptance', function () {
7271
})
7372

7473
it('Should report telemetry that records this user decision event', async function () {
75-
const session = CodeWhispererSessionState.instance.getSession()
7674
const testStartUrl = 'testStartUrl'
7775
sinon.stub(AuthUtil.instance, 'startUrl').value(testStartUrl)
7876
const mockEditor = createMockTextEditor()

packages/amazonq/test/unit/codewhisperer/commands/onInlineAcceptance.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ import { globals } from 'aws-core-vscode/shared'
1818
import { extensionVersion } from 'aws-core-vscode/shared'
1919

2020
describe('onInlineAcceptance', function () {
21+
const session = CodeWhispererSessionState.instance.getSession()
2122
describe('onInlineAcceptance', function () {
2223
beforeEach(async function () {
23-
const session = CodeWhispererSessionState.instance.getSession()
2424
await resetCodeWhispererGlobalVariables()
2525
session.reset()
2626
})
2727

2828
afterEach(function () {
29-
const session = CodeWhispererSessionState.instance.getSession()
3029
sinon.restore()
3130
session.reset()
3231
})
@@ -51,7 +50,6 @@ describe('onInlineAcceptance', function () {
5150
})
5251

5352
it('Should report telemetry that records this user decision event', async function () {
54-
const session = CodeWhispererSessionState.instance.getSession()
5553
await globals.globalState.update('CODEWHISPERER_USER_GROUP', {
5654
version: extensionVersion,
5755
})

0 commit comments

Comments
 (0)