diff --git a/libraries/examples/kotlin-jsr223-daemon-local-eval-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223/KotlinJsr223ScriptEngineIT.kt b/libraries/examples/kotlin-jsr223-daemon-local-eval-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223/KotlinJsr223ScriptEngineIT.kt index 926d90e6de7..9a90bb2dc1d 100644 --- a/libraries/examples/kotlin-jsr223-daemon-local-eval-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223/KotlinJsr223ScriptEngineIT.kt +++ b/libraries/examples/kotlin-jsr223-daemon-local-eval-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223/KotlinJsr223ScriptEngineIT.kt @@ -127,7 +127,9 @@ obj } - @Test + // Note: the test is flaky, because it is statistical and the thresholds are not big enough. + // Therefore it was decided to disable it, but leave in the code in order to be able to quickly check overheads when needed. +// @Test fun testEvalInEvalBench() { val engine = ScriptEngineManager().getEngineByExtension("kts")!! diff --git a/libraries/examples/kotlin-jsr223-local-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223/KotlinJsr223ScriptEngineIT.kt b/libraries/examples/kotlin-jsr223-local-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223/KotlinJsr223ScriptEngineIT.kt index ba63f38666a..58a6003ae49 100644 --- a/libraries/examples/kotlin-jsr223-local-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223/KotlinJsr223ScriptEngineIT.kt +++ b/libraries/examples/kotlin-jsr223-local-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223/KotlinJsr223ScriptEngineIT.kt @@ -158,7 +158,9 @@ obj Assert.assertEquals(7, res3) } - @Test + // Note: the test is flaky, because it is statistical and the thresholds are not big enough. + // Therefore it was decided to disable it, but leave in the code in order to be able to quickly check overheads when needed. +// @Test fun testEvalInEvalBench() { val engine = ScriptEngineManager().getEngineByExtension("kts")!! diff --git a/plugins/source-sections/source-sections-compiler/tests/org/jetbrains/kotlin/sourceSections/SourceSectionsTest.kt b/plugins/source-sections/source-sections-compiler/tests/org/jetbrains/kotlin/sourceSections/SourceSectionsTest.kt index 6b5a1d913eb..0954f54bca0 100644 --- a/plugins/source-sections/source-sections-compiler/tests/org/jetbrains/kotlin/sourceSections/SourceSectionsTest.kt +++ b/plugins/source-sections/source-sections-compiler/tests/org/jetbrains/kotlin/sourceSections/SourceSectionsTest.kt @@ -39,6 +39,7 @@ import org.jetbrains.kotlin.test.TestJdkKind import org.jetbrains.kotlin.utils.KotlinPaths import org.jetbrains.kotlin.utils.PathUtil import org.jetbrains.kotlin.utils.tryConstructClassFromStringArgs +import org.junit.Ignore import java.io.* import java.lang.management.ManagementFactory import java.net.URLClassLoader @@ -126,7 +127,10 @@ class SourceSectionsTest : TestCaseWithTmpdir() { } } - fun testSourceSectionsRunBench() { + // Note: the test is flaky, because it is statistical and the thresholds are not big enough. + // Therefore it was decided to ignore it, but leave in the code in order to be able to quickly check overheads when needed. + @Suppress("unused") + fun ignored_testSourceSectionsRunBench() { val mxBeans = ManagementFactory.getThreadMXBean() val (source, _) = getTestFiles(".out").first()