mjsax commented on code in PR #14596:
URL: https://github.com/apache/kafka/pull/14596#discussion_r1388813779


##########
streams/src/test/java/org/apache/kafka/streams/integration/IQv2VersionedStoreIntegrationTest.java:
##########
@@ -90,9 +96,7 @@ public void beforeTest() throws InterruptedException {
         configs.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, 
CLUSTER.bootstrapServers());
         configs.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, 
Serdes.IntegerSerde.class.getName());
         configs.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, 
Serdes.IntegerSerde.class.getName());
-        kafkaStreams = new KafkaStreams(builder.build(), configs);
-        kafkaStreams.start();
-        Thread.sleep(2000);
+        kafkaStreams = IntegrationTestUtils.getStartedStreams(configs, 
builder, true);

Review Comment:
   Using this helper is actually not strictly necessary, but seems "cleaner".



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to