Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fuzzing is not stopped on timeout when symbolic execution is excluded #…
  • Loading branch information
Markoutte committed Jul 22, 2022
commit 79bb80fc1c96cc89dc46276b3e132a9fa8a8c459
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ class UtBotSymbolicEngine(
})
}
fuzzedValues.forEach { values ->
if (System.currentTimeMillis() >= until) {
if (controller.job?.isActive == false || System.currentTimeMillis() >= until) {
logger.info { "Fuzzing overtime: $methodUnderTest" }
return@flow
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class TestFlow internal constructor(block: TestFlow.() -> Unit) {
isFuzzingEnabled -> {
when (val value = if (isSymbolicEngineEnabled) (fuzzingValue * generationTimeout).toLong() else generationTimeout) {
0L -> engine.traverse()
generationTimeout -> engine.fuzzing()
generationTimeout -> engine.fuzzing(System.currentTimeMillis() + value)
else -> flowOf(
engine.fuzzing(System.currentTimeMillis() + value),
engine.traverse()
Expand Down