Skip to content

Commit a9c560f

Browse files
committed
tst
1 parent d5495b6 commit a9c560f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ class CodeWhispererTelemetryTest : CodeWhispererTestBase() {
531531

532532
CodeWhispererCodeCoverageTracker.getInstance(project, CodeWhispererPython.INSTANCE).dispose()
533533

534-
val rawAcceptedTokenSize = pythonResponse.completions().first().content().length
534+
val rawAcceptedTokenSize = pythonResponse.completions().first().content().length.toLong()
535535
val acceptedTokensSize = rawAcceptedTokenSize - deletedTokenByUser
536536
val totalTokensSize = keystrokeInput.length + rawAcceptedTokenSize
537537

@@ -580,7 +580,7 @@ class CodeWhispererTelemetryTest : CodeWhispererTestBase() {
580580
CodeWhispererCodeCoverageTracker.getInstance(project, CodeWhispererPython.INSTANCE).dispose()
581581
}
582582

583-
val rawAcceptedTokenSize = pythonResponse.completions().first().content().length
583+
val rawAcceptedTokenSize = pythonResponse.completions().first().content().length.toLong()
584584
val totalTokensSize = keystrokeInput.length + rawAcceptedTokenSize + 1
585585

586586
val metricCaptor = argumentCaptor<MetricEvent>()
@@ -682,7 +682,7 @@ class CodeWhispererTelemetryTest : CodeWhispererTestBase() {
682682
CodeWhispererCodeCoverageTracker.getInstance(project, CodeWhispererPython.INSTANCE).dispose()
683683

684684
val rawAcceptedTokenSize = "x, y):\n return x + y".length
685-
val acceptedTokensSize = rawAcceptedTokenSize
685+
val acceptedTokensSize = rawAcceptedTokenSize.toLong()
686686
val totalTokensSize = "()".length + acceptedTokensSize
687687
val metricCaptor = argumentCaptor<MetricEvent>()
688688
verify(batcher, atLeastOnce()).enqueue(metricCaptor.capture())

0 commit comments

Comments
 (0)