Parcourir la source

[2225_xfrout] s/clear_counters/clear_all/

Due to the the method name changed
Naoki Kambe il y a 12 ans
Parent
commit
7390503b44

+ 2 - 2
src/bin/xfrout/tests/xfrout_test.py.in

@@ -291,7 +291,7 @@ class TestXfroutSessionBase(unittest.TestCase):
         # the XfroutSession object.  We check the condition here.
         self.assertEqual(0, self.xfrsess._server.transfer_counter)
         # clear statistics counters
-        self.xfrsess._counters.clear_counters()
+        self.xfrsess._counters.clear_all()
 
 class TestXfroutSession(TestXfroutSessionBase):
     def test_quota_error(self):
@@ -1578,7 +1578,7 @@ class TestUnixSockServerForCounter(unittest.TestCase):
             super,
             self.orig_process_request,
             self.orig_select )
-        self.unix._counters.clear_counters()
+        self.unix._counters.clear_all()
 
     def test_open(self):
         # open

+ 1 - 1
src/lib/python/isc/notify/tests/notify_out_test.py

@@ -112,7 +112,7 @@ class TestNotifyOut(unittest.TestCase):
         com_ch_info.notify_slaves.append(('1.1.1.1', 5353))
 
     def tearDown(self):
-        self._notify._counters.clear_counters()
+        self._notify._counters.clear_all()
 
     def test_send_notify(self):
         notify_out._MAX_NOTIFY_NUM = 2