Browse Source

[2856] Check complete_update() return value

Mukund Sivaraman 12 years ago
parent
commit
a84352beba
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/python/isc/memmgr/tests/datasrc_info_tests.py

+ 3 - 2
src/lib/python/isc/memmgr/tests/datasrc_info_tests.py

@@ -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):