Skip to content

Commit f279f2a

Browse files
committed
Little corrections
1 parent e7830e6 commit f279f2a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/services/framework/TestFrameworkManager.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ abstract class TestFrameworkManager(val context: CgContext)
177177
fun assertBoolean(actual: CgExpression) = assertBoolean(expected = true, actual)
178178

179179
fun fail(actual: CgExpression) {
180+
// failure assertion may be implemented in different packages in Java and Kotlin
181+
// more details at https://stackoverflow.com/questions/52967039/junit-5-assertions-fail-can-not-infer-type-in-kotlin
180182
when (codegenLanguage) {
181183
CodegenLanguage.JAVA -> +assertions[fail](actual)
182184
CodegenLanguage.KOTLIN -> +assertions[kotlinFail](actual)

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/process/EngineProcess.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class EngineProcess private constructor(val project: Project, private val classN
9595
private fun suspendValue(): String = if (UtSettings.suspendEngineProcessExecutionInDebugMode) "y" else "n"
9696

9797
private val debugArgument: String?
98-
get() = "-agentlib:jdwp=transport=dt_socket,server=y,suspend=${suspendValue()},quiet=y,address=${UtSettings.engineProcessDebugPort}"
98+
get() = "-agentlib:jdwp=transport=dt_socket,server=n,suspend=${suspendValue()},quiet=y,address=${UtSettings.engineProcessDebugPort}"
9999
.takeIf { UtSettings.runEngineProcessWithDebug }
100100

101101
private val javaExecutablePathString: Path

0 commit comments

Comments
 (0)