Skip to content

Commit 13e04d2

Browse files
committed
patch don't try init encodeerserver in test env
1 parent 9e79e54 commit 13e04d2

File tree

1 file changed

+4
-0
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project

1 file changed

+4
-0
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project/EncoderServer.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
77
import com.intellij.execution.configurations.GeneralCommandLine
88
import com.intellij.execution.process.KillableProcessHandler
99
import com.intellij.openapi.Disposable
10+
import com.intellij.openapi.application.ApplicationManager
1011
import com.intellij.openapi.project.Project
1112
import com.intellij.openapi.util.process.ProcessCloseUtil
1213
import com.intellij.util.io.HttpRequests
@@ -56,6 +57,9 @@ class EncoderServer(val project: Project) : Disposable {
5657
private val mapper = jacksonObjectMapper()
5758

5859
fun downloadArtifactsAndStartServer() {
60+
if (ApplicationManager.getApplication().isUnitTestMode) {
61+
return
62+
}
5963
downloadArtifactsIfNeeded()
6064
start()
6165
}

0 commit comments

Comments
 (0)