Skip to content

Commit

Permalink
fixed BB-mode RemoteController bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstphlbr committed May 28, 2024
1 parent d599109 commit d21b526
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/src/main/kotlin/org/evomaster/core/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,12 @@ class Main {
fun run(injector: Injector, controllerInfo: ControllerInfoDto?): Solution<*> {

val config = injector.getInstance(EMConfig::class.java)
val rc = injector.getInstance(RemoteController::class.java)

if (!config.blackBox || config.bbExperiments) {
val rc = if (!config.blackBox || config.bbExperiments) {
val rc = injector.getInstance(RemoteController::class.java)
rc.startANewSearch()
rc
} else {
null
}

val key = when (config.problemType) {
Expand All @@ -536,7 +538,7 @@ class Main {

LoggingUtil.getInfoLogger().info("Finished generating test cases")

rc.resetSUT()
rc?.resetSUT()

return solutions
}
Expand Down

0 comments on commit d21b526

Please sign in to comment.