From: Remi Gacogne Date: Fri, 4 Dec 2020 16:16:34 +0000 (+0100) Subject: rec: Fix unit test formatting X-Git-Tag: rec-4.5.0-alpha1~83^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cf5062e9bb8c320eba1d4e51f5b0ba9afad0270;p=thirdparty%2Fpdns.git rec: Fix unit test formatting --- diff --git a/pdns/recursordist/test-syncres_cc9.cc b/pdns/recursordist/test-syncres_cc9.cc index e0806f1241..20e96a273f 100644 --- a/pdns/recursordist/test-syncres_cc9.cc +++ b/pdns/recursordist/test-syncres_cc9.cc @@ -969,7 +969,6 @@ BOOST_AUTO_TEST_CASE(test_bogus_does_not_replace_secure_in_the_cache) g_luaconfs.setState(luaconfsCopy); sr->setAsyncCallback([keys](const ComboAddress& ip, const DNSName& domain, int type, bool doTCP, bool sendRDQuery, int EDNS0Level, struct timeval* now, boost::optional& srcmask, boost::optional context, LWResult* res, bool* chained) { - if (type == QType::DS || type == QType::DNSKEY) { if (domain == DNSName("cname.powerdns.com.")) { return genericDSAndDNSKEYHandler(res, domain, domain, type, keys, false /* no cut */); @@ -998,7 +997,7 @@ BOOST_AUTO_TEST_CASE(test_bogus_does_not_replace_secure_in_the_cache) else if (domain == DNSName("powerdns.com.") && type == QType::AAAA) { addRecordToLW(res, domain, QType::AAAA, "2001:db8::1"); addRRSIG(keys, res->d_records, DNSName("powerdns.com."), 300); - addRecordToLW(res, domain, QType::SOA, "foo. bar. 2017032800 1800 900 604800 86400"); + addRecordToLW(res, domain, QType::SOA, "foo. bar. 2017032800 1800 900 604800 86400"); /* no RRSIG this time! */ }