Skip to content

Commit d1f69e4

Browse files
committed
Fixed a bug in test_basic_operation where consume was not working properly
1 parent 1e8d017 commit d1f69e4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.semaphore/semaphore.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ execution_time_limit:
88
global_job_config:
99
env_vars:
1010
- name: LIBRDKAFKA_VERSION
11-
value: v2.10.0-RC2
11+
value: v2.10.0-RC3
1212
prologue:
1313
commands:
1414
- checkout
@@ -279,6 +279,8 @@ blocks:
279279
value: osx
280280
- name: ARCH
281281
value: arm64
282+
- name: PYTHONFAULTHANDLER
283+
value: "1"
282284
jobs:
283285
- name: Build
284286
commands:

tests/integration/admin/test_basic_operations.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ def consume_messages(group_id, num_messages=None):
277277
print('Read all the required messages: exiting')
278278
break
279279
except ConsumeError as e:
280-
if msg is not None and e.code == KafkaError._PARTITION_EOF:
280+
if e.code == KafkaError._PARTITION_EOF:
281+
msg = e.kafka_message
281282
print('Reached end of %s [%d] at offset %d' % (
282283
msg.topic(), msg.partition(), msg.offset()))
283284
eof_reached[(msg.topic(), msg.partition())] = True

0 commit comments

Comments
 (0)