[Daemon] Improve daemon connection algorithm
Before this change, the logic was to find the most suitable daemon and try connecting to it in a loop, ignoring the fact that it could be dying. Now, instead of trying to connect to the daemon dying daemon in a loop, we will make only 1 attemp and then skip if it's already dying. ^KT-55322 In Progress
This commit is contained in:
committed by
Space Team
parent
44d6807aba
commit
8ceee3e8b9
@@ -7,7 +7,6 @@ package org.jetbrains.kotlin.daemon
|
||||
|
||||
import org.jetbrains.kotlin.daemon.client.KotlinCompilerClient
|
||||
import org.jetbrains.kotlin.daemon.common.CompileService
|
||||
import org.junit.jupiter.api.Disabled
|
||||
import org.junit.jupiter.api.DisplayName
|
||||
import org.junit.jupiter.api.Test
|
||||
import java.io.File
|
||||
@@ -36,7 +35,6 @@ class LastSessionDaemonTest : BaseDaemonSessionTest() {
|
||||
assertEquals(0, exitCode)
|
||||
}
|
||||
|
||||
@Disabled("KT-55322")
|
||||
@DisplayName("can lease a session when the daemon in the LastSession state") // either by starting a new daemon or returning it to the Alive state
|
||||
@Test
|
||||
fun canLeaseNewSession() {
|
||||
|
||||
Reference in New Issue
Block a user