]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1336] fixed unittests
authorRazvan Becheriu <razvan@isc.org>
Wed, 5 Aug 2020 22:16:35 +0000 (01:16 +0300)
committerRazvan Becheriu <razvan@isc.org>
Thu, 13 Aug 2020 19:37:50 +0000 (22:37 +0300)
src/lib/dhcpsrv/tests/alloc_engine_utils.cc

index 1f17308089d6b6654e14d85d1642cbd55cbb71ae..c9446c3fa4b02b9a05592e19e88fb7a3649b8d16 100644 (file)
@@ -163,6 +163,8 @@ AllocEngine6Test::AllocEngine6Test() {
                64, 80);
 
     initFqdn("", false, false);
+
+    StatsMgr::instance().resetAll();
 }
 
 void
@@ -644,6 +646,8 @@ AllocEngine4Test::AllocEngine4Test() {
     ctx_.hwaddr_ = hwaddr_;
     ctx_.callout_handle_ = HooksManager::createCalloutHandle();
     ctx_.query_.reset(new Pkt4(DHCPREQUEST, 1234));
+
+    StatsMgr::instance().resetAll();
 }
 
 }  // namespace test