Skip to content

Commit 042c00e

Browse files
authored
fix(tests): unreliable codewhisperer tests #4288
fix test failure caused by non-reset CW state
1 parent ea875fc commit 042c00e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/test/codewhisperer/commands/onAcceptance.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe('onAcceptance', function () {
2424
describe('onAcceptance', function () {
2525
beforeEach(async function () {
2626
await resetCodeWhispererGlobalVariables()
27+
session.reset()
2728
})
2829

2930
afterEach(function () {

src/test/codewhisperer/commands/onInlineAcceptance.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ describe('onInlineAcceptance', function () {
2222
describe('onInlineAcceptance', function () {
2323
beforeEach(async function () {
2424
await resetCodeWhispererGlobalVariables()
25+
session.reset()
2526
})
2627

2728
afterEach(function () {

0 commit comments

Comments
 (0)