diff options
author | Dana Powers <dana.powers@gmail.com> | 2017-03-06 16:09:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-06 16:09:22 -0800 |
commit | 77e1ba36b330268c2db10e863da44484988d781c (patch) | |
tree | 8e8b03645188c2424731f3cb22d0c4ab666a9aaf /test | |
parent | 634d24fa5bf1c258acac7956f301b0176c325f89 (diff) | |
download | kafka-python-77e1ba36b330268c2db10e863da44484988d781c.tar.gz |
Disable default consumer group (#1016)
Diffstat (limited to 'test')
-rw-r--r-- | test/test_consumer_group.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_consumer_group.py b/test/test_consumer_group.py index 9d9be60..885ae83 100644 --- a/test/test_consumer_group.py +++ b/test/test_consumer_group.py @@ -54,12 +54,14 @@ def test_group(kafka_broker, topic): stop = {} threads = {} messages = collections.defaultdict(list) + group_id = 'test-group-' + random_string(6) def consumer_thread(i): assert i not in consumers assert i not in stop stop[i] = threading.Event() consumers[i] = KafkaConsumer(topic, bootstrap_servers=connect_str, + group_id=group_id, heartbeat_interval_ms=500) while not stop[i].is_set(): for tp, records in six.itervalues(consumers[i].poll(100)): |