From: Otto Moerbeek Date: Tue, 19 May 2020 09:51:03 +0000 (+0200) Subject: fix formatting X-Git-Tag: dnsdist-1.5.0-rc3~49^2 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fpdns.git;a=commitdiff_plain;h=b963ef8b7568c55493f942d660d9a61103bfc04e fix formatting --- diff --git a/pdns/recursordist/test-syncres_cc2.cc b/pdns/recursordist/test-syncres_cc2.cc index 38004165e2..2e19ce8a82 100644 --- a/pdns/recursordist/test-syncres_cc2.cc +++ b/pdns/recursordist/test-syncres_cc2.cc @@ -1291,7 +1291,7 @@ BOOST_AUTO_TEST_CASE(test_completely_flawed_big_nsset) if (isRootServer(ip) && domain == target) { setLWResult(res, 0, false, false, true); // 20 NS records - for (int i = 0; i < 20; i++) { + for (int i = 0; i < 20; i++) { string n = string("pdns-public-ns") + std::to_string(i) + string(".powerdns.com."); addRecordToLW(res, domain, QType::NS, n, DNSResourceRecord::AUTHORITY, 172800); } @@ -1309,10 +1309,11 @@ BOOST_AUTO_TEST_CASE(test_completely_flawed_big_nsset) try { sr->beginResolve(target, QType(QType::A), QClass::IN, ret); BOOST_CHECK(0); - } catch (const ImmediateServFailException& ex) { - BOOST_CHECK_EQUAL(ret.size(), 0U); - // one query to get NSs, then A and AAAA for each NS, 5th NS hits the limit - // limit is reduced to 5, because zone publishes many (20) NS + } + catch (const ImmediateServFailException& ex) { + BOOST_CHECK_EQUAL(ret.size(), 0U); + // one query to get NSs, then A and AAAA for each NS, 5th NS hits the limit + // limit is reduced to 5, because zone publishes many (20) NS BOOST_CHECK_EQUAL(queriesCount, 11); } }