Skip to content

Commit 3380c5a

Browse files
committed
Fixed failing test case
1 parent 7f1c795 commit 3380c5a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/common/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ def use_kraft():
3838

3939
def _get_consumer_generic(consumer_clazz, conf=None, **kwargs):
4040
if use_group_protocol_consumer():
41-
if conf is None:
42-
conf = {}
43-
conf['group.protocol'] = 'consumer'
41+
if conf is not None and 'group.id' in conf:
42+
conf['group.protocol'] = 'consumer'
4443
return consumer_clazz(conf, **kwargs)
4544

4645

0 commit comments

Comments
 (0)