Skip to content

Commit 8604f7c

Browse files
committed
fix detektTest and revert @ignore
1 parent a09dd40 commit 8604f7c

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ class CodeWhispererTelemetryTest : CodeWhispererTestBase() {
270270
val userInput = "(x, y)"
271271
addUserInputAfterInvocation(userInput)
272272
withCodeWhispererServiceInvokedAndWait { }
273-
val prefixNotMatchCount = pythonResponse.completions().filter {
273+
val prefixNotMatchCount = pythonResponse.completions().count {
274274
!it.content().startsWith(userInput)
275-
}.size
275+
}
276276
argumentCaptor<MetricEvent>().apply {
277277
verify(batcher, atLeast(1 + prefixNotMatchCount)).enqueue(capture())
278278
assertEventsContainsFieldsAndCount(

plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/core/gettingstarted/SetupAuthenticationDialogTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import io.mockk.mockk
1313
import io.mockk.mockkStatic
1414
import io.mockk.verify
1515
import org.assertj.core.api.Assertions.assertThat
16-
import org.junit.Ignore
1716
import org.junit.jupiter.api.Test
1817
import org.junit.jupiter.api.assertThrows
1918
import org.junit.jupiter.api.extension.ExtendWith
@@ -280,7 +279,6 @@ class SetupAuthenticationDialogTest {
280279
}
281280

282281
@Test
283-
@Ignore("flaky")
284282
fun `validate IAM tab fails if credentials are invalid`() {
285283
val state = SetupAuthenticationDialogState().apply {
286284
selectedTab.set(SetupAuthenticationTabs.IAM_LONG_LIVED)

plugins/toolkit/jetbrains-core/tst/software/aws/toolkits/jetbrains/core/gettingstarted/GettingStartedOnStartupTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import io.mockk.junit5.MockKExtension
1010
import io.mockk.mockkObject
1111
import io.mockk.verify
1212
import kotlinx.coroutines.ExperimentalCoroutinesApi
13-
import org.junit.Ignore
1413
import org.junit.jupiter.api.AfterEach
1514
import org.junit.jupiter.api.Test
1615
import org.junit.jupiter.api.extension.ExtendWith
@@ -74,7 +73,6 @@ class GettingStartedOnStartupTest {
7473
}
7574

7675
@Test
77-
@Ignore("flaky")
7876
fun `shows screen if aws settings exist and no credentials`() {
7977
mockkObject(GettingStartedPanel.Companion)
8078
every { GettingStartedPanel.openPanel(any()) } returns Unit

0 commit comments

Comments
 (0)