Skip to content

Commit 9dc8226

Browse files
committed
fix unreliable tests
1 parent 4912697 commit 9dc8226

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
@@ -78,6 +78,7 @@ describe('onAcceptance', function () {
7878
})
7979

8080
it('Should report telemetry that records this user decision event', async function () {
81+
RecommendationHandler.instance.clearRecommendations()
8182
await globals.context.globalState.update(CodeWhispererConstants.userGroupKey, {
8283
group: CodeWhispererConstants.UserGroup.Control,
8384
version: extensionVersion,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describe('onInlineAcceptance', function () {
5555
})
5656

5757
it('Should report telemetry that records this user decision event', async function () {
58+
await RecommendationHandler.instance.clearInlineCompletionStates()
5859
await globals.context.globalState.update(CodeWhispererConstants.userGroupKey, {
5960
group: CodeWhispererConstants.UserGroup.Classifier,
6061
version: extensionVersion,

0 commit comments

Comments
 (0)