]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2225_statistics] add tearDown()
authorNaoki Kambe <kambe@jprs.co.jp>
Mon, 26 Nov 2012 13:05:28 +0000 (22:05 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Mon, 26 Nov 2012 13:05:28 +0000 (22:05 +0900)
clear statistics data when every test is finished

src/lib/python/isc/statistics/tests/counter_test.py

index 6d90a951cf738fb9957584b5eb0fcf4080bba0d5..097ded69358ffe85efa36487cfda1d1e0f25becc 100644 (file)
@@ -160,6 +160,9 @@ class BaseTestCounter():
         self._zones_item_list   = self.counter._zones_item_list
         self._started = threading.Event()
 
+    def tearDown(self):
+        self.counter.clear_counters()
+
     def test_perzone_counters(self):
         # for per-zone counters
         for counter_name in self._zones_item_list: