Skip to content

Commit

Permalink
Fix soaktest to run without TestConsumer
Browse files Browse the repository at this point in the history
as new protocol configuration can be put in configuration
properties file
  • Loading branch information
emasab committed Dec 16, 2024
1 parent 888829a commit 0a814c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/soak/soakclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@
#

from confluent_kafka import KafkaError, KafkaException, version
from confluent_kafka import Producer
from confluent_kafka import Producer, Consumer
from confluent_kafka.admin import AdminClient, NewTopic
from collections import defaultdict
from builtins import int
from opentelemetry import metrics
from common import TestConsumer
import argparse
import threading
import time
Expand Down Expand Up @@ -447,7 +446,7 @@ def filter_config(conf, filter_out, strip_prefix):
cconf['error_cb'] = self.consumer_error_cb
cconf['on_commit'] = self.consumer_commit_cb
self.logger.info("consumer: using group.id {}".format(cconf['group.id']))
self.consumer = TestConsumer(cconf)
self.consumer = Consumer(cconf)

# Create and start producer thread
self.producer_thread = threading.Thread(target=self.producer_thread_main)
Expand Down

0 comments on commit 0a814c9

Please sign in to comment.