test_freeze fails, possibly due to race condition

This commit is contained in:
Itai Shirav 2017-08-20 09:36:26 +03:00
parent 88b1cea98c
commit 9891ccffaf

View File

@ -63,6 +63,7 @@ class SystemPartTest(unittest.TestCase):
# There can be other backups in the folder # There can be other backups in the folder
prev_backups = set(self._get_backups()) prev_backups = set(self._get_backups())
parts[0].freeze() parts[0].freeze()
sleep(1)
backups = set(self._get_backups()) backups = set(self._get_backups())
self.assertEqual(len(backups), len(prev_backups) + 1) self.assertEqual(len(backups), len(prev_backups) + 1)