File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
utbot-junit-contest/src/main/kotlin/org/utbot/contest/usvm Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -192,10 +192,7 @@ fun runUsvmGeneration(
192
192
}
193
193
}
194
194
val jcExecutions = states.mapNotNull {
195
- // TODO usvm-sbft: if we have less than `runner.timeout` budget we should only let resolver run
196
- // for `remainingBudgetMillisWithoutCodegen()` ms, right now last resolver call may exceed budget,
197
- // essentially stealing some time from codegen
198
- if (remainingBudgetMillisWithoutCodegen() > 0 )
195
+ if (remainingBudgetMillisWithoutCodegen() > UTestRunner .CONTEST_TEST_EXECUTION_TIMEOUT .inWholeMilliseconds)
199
196
logger.debug().measureTime({ " resolver.resolve(${method.classId} .${method.signature} , ...)" }) {
200
197
runCatching {
201
198
resolver.resolve(jcTypedMethod, it)
Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ package org.utbot.contest.usvm.executor
3
3
import org.jacodb.api.JcClasspath
4
4
import org.usvm.instrumentation.executor.UTestConcreteExecutor
5
5
import org.usvm.instrumentation.instrumentation.JcRuntimeTraceInstrumenterFactory
6
- import org.usvm.instrumentation.util.InstrumentationModuleConstants
6
+ import kotlin.time.Duration.Companion.seconds
7
7
8
8
// TODO usvm-sbft-refactoring: copied from `usvm/usvm-jvm/test`, extract this class back to USVM project
9
9
object UTestRunner {
10
+ val CONTEST_TEST_EXECUTION_TIMEOUT = 1 .seconds
10
11
11
12
lateinit var runner: UTestConcreteExecutor
12
13
@@ -18,7 +19,7 @@ object UTestRunner {
18
19
JcRuntimeTraceInstrumenterFactory ::class ,
19
20
pathToJars,
20
21
classpath,
21
- InstrumentationModuleConstants .testExecutionTimeout
22
+ CONTEST_TEST_EXECUTION_TIMEOUT
22
23
)
23
24
}
24
25
}
You can’t perform that action at this time.
0 commit comments