зеркало из https://github.com/github/vitess-gh.git
Fixing flaky tests.
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:
Родитель
43efd74c43
Коммит
b3b24d62f1
|
@ -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'):
|
||||
|
|
Загрузка…
Ссылка в новой задаче