Skip to content

Commit 1b9806a

Browse files
author
Kamenev Yury
committed
Increased hanging child process default timeout
1 parent 2c77b45 commit 1b9806a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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
@@ -490,7 +490,7 @@ data class HangingTestsTimeout(val timeoutMs: Long) {
490490

491491
companion object {
492492
const val DEFAULT_TIMEOUT_MS = DEFAULT_CONCRETE_EXECUTION_TIMEOUT_IN_CHILD_PROCESS_MS
493-
const val MIN_TIMEOUT_MS = DEFAULT_CONCRETE_EXECUTION_TIMEOUT_IN_CHILD_PROCESS_MS
493+
const val MIN_TIMEOUT_MS = 100L
494494
const val MAX_TIMEOUT_MS = 1_000_000L
495495
}
496496
}

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)