]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2856] Check complete_update() return value
authorMukund Sivaraman <muks@isc.org>
Mon, 8 Jul 2013 12:22:23 +0000 (17:52 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 8 Jul 2013 12:22:31 +0000 (17:52 +0530)
src/lib/python/isc/memmgr/tests/datasrc_info_tests.py

index 9e366470141c61dda1f75e49cd14730a612d2f01..e81f89ca9ccd9b9d6aa124d80db54f19afe9fdbd 100644 (file)
@@ -182,9 +182,10 @@ class TestSegmentInfo(unittest.TestCase):
         self.__si_to_synchronizing_state()
         self.assertRaises(SegmentInfoError, self.__sgmt_info.complete_update)
 
-        # in COPYING state with no events
+        # in COPYING state
         self.__si_to_copying_state()
-        self.__sgmt_info.complete_update()
+        e = self.__sgmt_info.complete_update()
+        self.assertIsNone(e)
         self.assertEqual(self.__sgmt_info.get_state(), SegmentInfo.READY)
 
     def test_sync_reader_when_ready(self):