]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix formatting of the connections cache unit tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 3 Nov 2021 14:03:58 +0000 (15:03 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 8 Nov 2021 09:26:12 +0000 (10:26 +0100)
pdns/dnsdistdist/test-dnsdist-connections-cache.cc

index 6f708deb6e5a99a01356cf1f8c88117b0f6e5b1c..da9e733a46cb77346007596abb676d7a74d96cc2 100644 (file)
@@ -66,7 +66,10 @@ public:
   {
   }
 
-  struct timeval d_lastDataReceivedTime{0, 0};
+  struct timeval d_lastDataReceivedTime
+  {
+    0, 0
+  };
   bool d_reusable{true};
   bool d_usable{true};
   bool d_idle{false};
@@ -151,7 +154,7 @@ BOOST_AUTO_TEST_CASE(test_ConnectionsCache)
   conn->d_usable = false;
   conn->d_lastDataReceivedTime.tv_sec = 0;
 
-  std::vector<std::shared_ptr<MockupConnection>> conns = { conn };
+  std::vector<std::shared_ptr<MockupConnection>> conns = {conn};
   while (conns.size() < maxConnPerDownstream) {
     auto newConn = manager.getConnectionToDownstream(mplexer, downstream1, now, std::string());
     newConn->d_usable = false;