]> granicus.if.org Git - pdns/commitdiff
Fix incorrect comment in testcase
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Mon, 8 Jan 2018 14:56:15 +0000 (15:56 +0100)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Mon, 8 Jan 2018 14:56:15 +0000 (15:56 +0100)
pdns/test-dnsdistpacketcache_cc.cc

index fd6ba398eb7217d5ddbb97222d96fdaa837a02ee..2acc4ba70d528d2eb29c88f20f2d3032fe9fc30e 100644 (file)
@@ -144,7 +144,7 @@ BOOST_AUTO_TEST_CASE(test_PacketCacheServFailTTL) {
     found = PC.get(dq, a.wirelength(), pwR.getHeader()->id, responseBuf, &responseBufSize, &key, 0, true);
     BOOST_CHECK_EQUAL(found, false);
 
-    // Insert with failure-TTL non-zero (-> should not enter cache).
+    // Insert with failure-TTL non-zero (-> should enter cache).
     PC.insert(key, a, QType::A, QClass::IN, (const char*) response.data(), responseLen, false, RCode::ServFail, boost::optional<uint32_t>(300));
     found = PC.get(dq, a.wirelength(), pwR.getHeader()->id, responseBuf, &responseBufSize, &key, 0, true);
     BOOST_CHECK_EQUAL(found, true);