With N being integer:
base_time = N.2
terTime = N.4 rounded to N
so terTime < base_time, even though it's not.
This commit is contained in:
Alain Jobart 2015-08-07 11:11:54 -07:00
Родитель 43efd74c43
Коммит b3b24d62f1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -556,7 +556,8 @@ class TestReparent(unittest.TestCase):
'-count', '1',
tablet_62044.tablet_alias])
self.assertEqual(health['target']['tablet_type'], 2) # MASTER
self.assertTrue(health['tablet_externally_reparented_timestamp'] >= base_time)
# have to compare the int version, or the rounding errors can break
self.assertTrue(health['tablet_externally_reparented_timestamp'] >= int(base_time))
# See if a missing slave can be safely reparented after the fact.
def test_reparent_with_down_slave(self, shard_id='0'):