File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
consumer/src/test/kotlin/integrations Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ class KafkaEventSinkIT {
331331
332332 @Test
333333 fun shouldWriteLastOffsetWithNoAutoCommit () = runBlocking {
334- val topic = topics[ 0 ]
334+ val topic = UUID .randomUUID().toString()
335335 graphDatabaseBuilder.setConfig(" streams.sink.topic.cypher.$topic " , cypherQueryTemplate)
336336 graphDatabaseBuilder.setConfig(" kafka.${ConsumerConfig .ENABLE_AUTO_COMMIT_CONFIG } " , " false" )
337337 db = graphDatabaseBuilder.newGraphDatabase() as GraphDatabaseAPI
@@ -353,7 +353,7 @@ class KafkaEventSinkIT {
353353 kafkaProperties[ConsumerConfig .KEY_DESERIALIZER_CLASS_CONFIG ] = StringDeserializer ::class .java
354354 kafkaProperties[ConsumerConfig .VALUE_DESERIALIZER_CLASS_CONFIG ] = ByteArrayDeserializer ::class .java
355355 val kafkaConsumer = KafkaConsumer <String , ByteArray >(kafkaProperties)
356- val offsetAndMetadata = kafkaConsumer.committed(TopicPartition (topics[ 0 ] , 0 ))
356+ val offsetAndMetadata = kafkaConsumer.committed(TopicPartition (topic , 0 ))
357357
358358 result.hasNext() && result.next() == 2L && ! result.hasNext() && resp.offset() == offsetAndMetadata.offset()
359359 }, equalTo(true ), 30 , TimeUnit .SECONDS )
You can’t perform that action at this time.
0 commit comments