Skip to content

Commit f7ccac2

Browse files
committed
Disabled flaky test
1 parent d777d33 commit f7ccac2

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

utbot-framework-test/src/test/kotlin/org/utbot/examples/collections/ListsPart3Test.kt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,16 @@ internal class ListsPart3Test : UtValueTestCaseChecker(
221221

222222
@Test
223223
fun testAsListExample() {
224-
withoutConcrete { // TODO Concrete fail matchers with "Cannot show class" error
225-
check(
226-
Lists::asListExample,
227-
eq(2),
228-
{ arr, r -> arr.isEmpty() && r!!.isEmpty() },
229-
{ arr, r -> arr.isNotEmpty() && arr.contentEquals(r!!.toTypedArray()) },
230-
coverage = FullWithAssumptions(assumeCallsNumber = 1)
231-
)
224+
withEnabledTestingCodeGeneration(testCodeGeneration = false) { // TODO Assemble model for java.util.ArrayList is returned, but actual type is java.util.Arrays.ArrayList https://github.com/UnitTestBot/UTBotJava/issues/398
225+
withoutConcrete { // TODO Concrete fail matchers with "Cannot show class" error
226+
check(
227+
Lists::asListExample,
228+
eq(2),
229+
{ arr, r -> arr.isEmpty() && r!!.isEmpty() },
230+
{ arr, r -> arr.isNotEmpty() && arr.contentEquals(r!!.toTypedArray()) },
231+
coverage = FullWithAssumptions(assumeCallsNumber = 1)
232+
)
233+
}
232234
}
233235
}
234236

utbot-framework-test/src/test/kotlin/org/utbot/examples/collections/MapsPart2Test.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.utbot.examples.collections
22

3+
import org.junit.jupiter.api.Disabled
34
import org.utbot.framework.plugin.api.CodegenLanguage
45
import org.junit.jupiter.api.Test
56
import org.utbot.testcheckers.ge
@@ -68,7 +69,7 @@ internal class MapsPart2Test : UtValueTestCaseChecker(
6869
}
6970
}
7071

71-
@Test
72+
@Disabled("Flaky https://github.com/UnitTestBot/UTBotJava/issues/1695")
7273
fun testPutAllEntries() {
7374
withPushingStateFromPathSelectorForConcrete {
7475
check(

0 commit comments

Comments
 (0)