From feb3dd76142e093ed2b5df18be327ede8bd2dbdb Mon Sep 17 00:00:00 2001 From: Frederik Haselmeier Date: Mon, 2 Sep 2024 10:59:51 +0200 Subject: [PATCH] [kotlin] Fixed daemon has terminated error causing flakiness in Kotlin compiler reference tests KTIJ-31055 GitOrigin-RevId: 544a5cda4f0fa6fa724ed3655577baf0045fc148 --- .../codeInsight/completion/AbstractCompilerAwareTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/AbstractCompilerAwareTest.java b/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/AbstractCompilerAwareTest.java index e22d303b46d1..9d3e8cdb8e35 100644 --- a/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/AbstractCompilerAwareTest.java +++ b/java/java-tests/testSrc/com/intellij/java/codeInsight/completion/AbstractCompilerAwareTest.java @@ -57,6 +57,12 @@ public abstract class AbstractCompilerAwareTest extends JavaCodeInsightFixtureTe protected void rebuildProject() { for (final CompilerMessage compilerMessage : myCompilerTester.rebuild()) { + if (compilerMessage.getMessage().contains("Kotlin compile daemon is ready")) { + // For Kotlin, this error does not indicate that the compilation failed and can be ignored. + // It will start a second daemon that should compile the project correctly. + // See KT-69929 + continue; + } assertNotSame("File: " + compilerMessage.getVirtualFile() + ", " + compilerMessage.getMessage(), CompilerMessageCategory.ERROR, compilerMessage.getCategory()); }