[kotlin] Fixed daemon has terminated error causing flakiness in Kotlin compiler reference tests

KTIJ-31055

GitOrigin-RevId: 544a5cda4f0fa6fa724ed3655577baf0045fc148
This commit is contained in:
Frederik Haselmeier
2024-09-02 10:33:56 +00:00
committed by intellij-monorepo-bot
parent 128507917b
commit feb3dd7614
@@ -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());
}