From: Pieter Lexis Date: Wed, 3 Mar 2021 10:33:02 +0000 (+0100) Subject: protobuf test: print message and fix a small bug X-Git-Tag: dnsdist-1.6.0-alpha2~2^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f305c23a49b8e285a9931789a3e1c73f290ddfa8;p=thirdparty%2Fpdns.git protobuf test: print message and fix a small bug --- diff --git a/regression-tests.recursor-dnssec/test_Protobuf.py b/regression-tests.recursor-dnssec/test_Protobuf.py index d26bf4381b..ec3a7e4b01 100644 --- a/regression-tests.recursor-dnssec/test_Protobuf.py +++ b/regression-tests.recursor-dnssec/test_Protobuf.py @@ -111,6 +111,7 @@ class TestRecursorProtobuf(RecursorTest): if oldmsg is not None: self.assertEquals(msg, oldmsg) + print(msg) return msg def checkNoRemainingMessage(self): @@ -229,7 +230,7 @@ class TestRecursorProtobuf(RecursorTest): self.assertTrue(msg.question.HasField('qClass')) self.assertEquals(msg.question.qClass, qclass) self.assertTrue(msg.question.HasField('qType')) - self.assertEquals(msg.question.qClass, qtype) + self.assertEquals(msg.question.qType, qtype) self.assertTrue(msg.question.HasField('qName')) self.assertEquals(msg.question.qName, qname)