]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix formatting 9119/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 19 May 2020 09:51:03 +0000 (11:51 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 19 May 2020 09:51:03 +0000 (11:51 +0200)
pdns/recursordist/test-syncres_cc2.cc

index 38004165e256a28a3edda2b65540fc3254d1b8da..2e19ce8a828d491b016496dca826790d36c53b3c 100644 (file)
@@ -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);
   }
 }