]> granicus.if.org Git - pdns/commitdiff
testcase: do not add "unused" response to queue
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Mon, 8 Jan 2018 14:57:00 +0000 (15:57 +0100)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Mon, 8 Jan 2018 14:57:00 +0000 (15:57 +0100)
regression-tests.dnsdist/test_Caching.py

index 50d8bc66dfd8823b5c74ea5fcad0da48dbed4620..fab7372799414adcf0c77a34f485eabb4eb670fc 100644 (file)
@@ -385,7 +385,7 @@ class TestTempFailureCacheTTLAction(DNSDistTest):
         self.assertEquals(receivedResponse, response)
 
         # next query should hit the cache
-        (receivedQuery, receivedResponse) = self.sendUDPQuery(query, response)
+        (receivedQuery, receivedResponse) = self.sendUDPQuery(query, response=None, useQueue=False)
         self.assertFalse(receivedQuery)
         self.assertTrue(receivedResponse)
         self.assertEquals(receivedResponse, response)