Parcourir la source

[2353] Restore the saved time.time function

Mukund Sivaraman il y a 12 ans
Parent
commit
924c7a481e
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/bin/bind10/tests/bind10_test.py.in

+ 2 - 0
src/bin/bind10/tests/bind10_test.py.in

@@ -1623,6 +1623,8 @@ class TestBossComponents(unittest.TestCase):
         # 1 second of attempts every 0.1 seconds should result in at least 5 attempts
         self.assertGreater(attempts, 5)
 
+        time.time = tmp_time
+
     def test_start_cfgmgr(self):
         '''Test that b10-cfgmgr is started.'''
         class DummySession():