We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca16986 commit 102c002Copy full SHA for 102c002
tests/integration/schema_registry/test_proto_serializers.py
@@ -16,7 +16,7 @@
16
#
17
import pytest
18
19
-from confluent_kafka import TopicPartition, KafkaException
+from confluent_kafka import TopicPartition, KafkaException, KafkaError
20
from confluent_kafka.error import ConsumeError
21
from confluent_kafka.schema_registry.protobuf import ProtobufSerializer, ProtobufDeserializer
22
from .gen import metadata_proto_pb2
@@ -145,6 +145,6 @@ def dr(err, msg):
145
partition=0)
146
producer.flush()
147
148
- with pytest.raises(ConsumeError,
149
- match="Error parsing message"):
+ with pytest.raises(ConsumeError) as e:
150
consumer.poll()
+ assert e.value.code == KafkaError._KEY_DESERIALIZATION
0 commit comments