diff --git a/core/src/main/kotlin/org/evomaster/core/problem/rpc/service/RPCSampler.kt b/core/src/main/kotlin/org/evomaster/core/problem/rpc/service/RPCSampler.kt index 094f739b01..477b32cc05 100644 --- a/core/src/main/kotlin/org/evomaster/core/problem/rpc/service/RPCSampler.kt +++ b/core/src/main/kotlin/org/evomaster/core/problem/rpc/service/RPCSampler.kt @@ -167,17 +167,18 @@ class RPCSampler: ApiWsSampler() { } } } - + // create a test with one schedule task scheduleActionCluster.asSequence() .filter { it.value is ScheduleTaskAction } .forEach { a-> val copy = a.value.copy() as ScheduleTaskAction copy.doInitialize(randomness) - + val ind = createSingleScheduleTaskRPCIndividual(SampleType.RANDOM, mutableListOf(copy)) + adHocInitialIndividuals.add(ind) } } - private fun createRPCIndividual(sampleType: SampleType, scheduleTaskActions: MutableList) : RPCIndividual{ + private fun createSingleScheduleTaskRPCIndividual(sampleType: SampleType, scheduleTaskActions: MutableList) : RPCIndividual{ return RPCIndividual( sampleType = sampleType, trackOperator = if(config.trackingEnabled()) this else null,