We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21f06bb commit 32ae04fCopy full SHA for 32ae04f
1 file changed
utbot-python/src/main/kotlin/org/utbot/python/PythonTestCaseGenerator.kt
@@ -30,6 +30,7 @@ import java.io.File
30
31
private val logger = KotlinLogging.logger {}
32
private const val RANDOM_TYPE_FREQUENCY = 6
33
+private const val MAX_EXECUTIONS = 50000
34
35
class PythonTestCaseGenerator(
36
private val withMinimization: Boolean = true,
@@ -167,7 +168,9 @@ class PythonTestCaseGenerator(
167
168
169
var feedback: InferredTypeFeedback = SuccessFeedback
170
- val fuzzerCancellation = { isCancelled() || limitManager.isCancelled() }
171
+ val fuzzerCancellation = {
172
+ isCancelled() || limitManager.isCancelled() || (errors.size + executions.size) >= MAX_EXECUTIONS
173
+ }
174
175
engine.fuzzing(args, fuzzerCancellation, until).collect {
176
when (it) {
0 commit comments