Skip to content

Commit bc5178b

Browse files
committed
test fix
1 parent 86729fe commit bc5178b

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererTelemetryTest.kt

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -390,39 +390,6 @@ class CodeWhispererTelemetryTest : CodeWhispererTestBase() {
390390
)
391391
}
392392

393-
@Test @Ignore
394-
fun `test showing IntelliSense after triggering CodeWhisperer will send userDecision events of state Discard`() {
395-
val codewhispererServiceSpy = spy(codewhispererService)
396-
codewhispererServiceSpy.stub {
397-
onGeneric {
398-
canDoInvocation(any(), any())
399-
} doAnswer {
400-
true
401-
}
402-
}
403-
ApplicationManager.getApplication().replaceService(CodeWhispererService::class.java, codewhispererServiceSpy, disposableRule.disposable)
404-
popupManagerSpy.stub {
405-
onGeneric {
406-
// hasConflictingPopups(any())
407-
null
408-
} doAnswer {
409-
true
410-
}
411-
}
412-
invokeCodeWhispererService()
413-
414-
runInEdtAndWait {
415-
val metricCaptor = argumentCaptor<MetricEvent>()
416-
verify(batcher, atLeastOnce()).enqueue(metricCaptor.capture())
417-
assertEventsContainsFieldsAndCount(
418-
metricCaptor.allValues,
419-
userDecision,
420-
pythonResponse.completions().size,
421-
codewhispererSuggestionState to CodewhispererSuggestionState.Discard.toString(),
422-
)
423-
}
424-
}
425-
426393
@Test
427394
fun `test codePercentage tracker will not be activated if CWSPR terms of service is not accepted`() {
428395
val exploreManagerMock = mock<CodeWhispererExplorerActionManager> {

0 commit comments

Comments
 (0)