Skip to content

Commit 08ff342

Browse files
Kamenev YuryDamtev
authored andcommitted
Increased hanging child process default timeout
1 parent 6977f39 commit 08ff342

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

utbot-framework-api/src/main/kotlin/org/utbot/framework/UtSettings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal class SettingDelegate<T>(val initializer: () -> T) {
3131
/**
3232
* Default concrete execution timeout (in milliseconds).
3333
*/
34-
const val DEFAULT_CONCRETE_EXECUTION_TIMEOUT_IN_CHILD_PROCESS_MS = 100L
34+
const val DEFAULT_CONCRETE_EXECUTION_TIMEOUT_IN_CHILD_PROCESS_MS = 1000L
3535

3636
object UtSettings {
3737
private val properties = Properties().also { props ->

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/Domain.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ data class HangingTestsTimeout(val timeoutMs: Long) {
505505

506506
companion object {
507507
const val DEFAULT_TIMEOUT_MS = DEFAULT_CONCRETE_EXECUTION_TIMEOUT_IN_CHILD_PROCESS_MS
508-
const val MIN_TIMEOUT_MS = DEFAULT_CONCRETE_EXECUTION_TIMEOUT_IN_CHILD_PROCESS_MS
508+
const val MIN_TIMEOUT_MS = 100L
509509
const val MAX_TIMEOUT_MS = 1_000_000L
510510
}
511511
}

utbot-sample/src/main/java/org/utbot/examples/exceptions/ExceptionClusteringExamples.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public int differentExceptionsInNestedCall(int i) throws MyCheckedException {
2020
}
2121

2222
public int sleepingMoreThanDefaultTimeout(int i) throws InterruptedException {
23-
Thread.sleep(500L);
23+
Thread.sleep(1500L);
2424

2525
if (i < 0) {
2626
throw new RuntimeException();

0 commit comments

Comments
 (0)