diff --git a/tests/java-tests/build.gradle.kts b/tests/java-tests/build.gradle.kts
index 0e919855d..ab441f53c 100644
--- a/tests/java-tests/build.gradle.kts
+++ b/tests/java-tests/build.gradle.kts
@@ -62,12 +62,6 @@ tasks {
       println("Set env TEAMCITY_VERSION to X to enable project leak checks from the platform")
       environment("TEAMCITY_VERSION" to "X")
     }
-
-    // IJ platform has JUnit5TestSessionListener with some additional checks;
-    // however, in 242 there is a problem with disposing so these checks always fail on TeamCity (works locally).
-    // This property disables these checks
-    // IJPL-165238
-//    systemProperty("intellij.build.test.ignoreFirstAndLastTests", true)
   }
 }