Skip to content

Commit

Permalink
#332 fix Generator creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jemacineiras committed Jan 26, 2024
1 parent c8de4d0 commit 25b7a0d
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ public final class KafkaProducerSampler extends AbstractJavaSamplerClient implem
public void setupTest(final JavaSamplerContext context) {
props = JMeterContextService.getContext().getProperties();

if (context.getJMeterVariables().get(PropsKeysHelper.VALUE_SCHEMA) == null) {
generator = SamplerUtil.configureKeyGenerator(props);
} else {
generator = SamplerUtil.configureValueGenerator(props);
}
generator = SamplerUtil.configureValueGenerator(props);

if ("true".equals(context.getJMeterVariables().get(PropsKeysHelper.SCHEMA_KEYED_MESSAGE_KEY))
|| "true".equals(context.getJMeterVariables().get(PropsKeysHelper.SIMPLE_KEYED_MESSAGE_KEY))) {
Expand Down

0 comments on commit 25b7a0d

Please sign in to comment.