]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2225_xfrout] fix the wrong counter numbers
authorNaoki Kambe <kambe@jprs.co.jp>
Thu, 6 Dec 2012 05:40:52 +0000 (14:40 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Mon, 21 Jan 2013 05:27:02 +0000 (14:27 +0900)
It is realized that the removed dummy counter class didn't increase
the counters properly.

src/lib/python/isc/notify/tests/notify_out_test.py

index b88cc9d53f3a95bfd23478dadc4a7cebd3969dd4..149096ce203466aeada4733ccf6b03fe6793b7a0 100644 (file)
@@ -279,7 +279,7 @@ class TestNotifyOut(unittest.TestCase):
         self.assertTrue(ret)
         self.assertEqual(socket.AF_INET, example_com_info.sock_family)
         self.assertEqual(self._notify._counter.get(
-                'zones', 'example.net.', 'notifyoutv4'), 0)
+                'zones', 'example.net.', 'notifyoutv4'), 1)
         self.assertEqual(self._notify._counter.get(
                 'zones', 'example.net.', 'notifyoutv6'), 0)
 
@@ -300,7 +300,7 @@ class TestNotifyOut(unittest.TestCase):
         self.assertEqual(self._notify._counter.get(
                 'zones', 'example.net.', 'notifyoutv4'), 0)
         self.assertEqual(self._notify._counter.get(
-                'zones', 'example.net.', 'notifyoutv6'), 0)
+                'zones', 'example.net.', 'notifyoutv6'), 1)
 
     def test_send_notify_message_with_bogus_address(self):
         example_com_info = self._notify._notify_infos[('example.net.', 'IN')]