Merge pull request #840 from youtube/aaijazi_deflake_worker_test

Increase the timeout for worker tests to deflake them
This commit is contained in:
Ammar Aijazi 2015-06-28 15:11:11 -07:00
Родитель 6f066c363e 59e1ddf5de
Коммит 2a5a3b9a28
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -383,7 +383,11 @@ class TestBaseSplitCloneResiliency(unittest.TestCase):
'WorkerState == cleaning up',
condition_fn=lambda v: v.get('WorkerState') == 'cleaning up',
# We know that vars should already be ready, since we read them earlier
require_vars=True)
require_vars=True,
# We're willing to let the test run for longer to make it less flaky.
# This should still fail fast if something goes wrong with vtworker,
# because of the require_vars flag above.
timeout=5*60)
# Verify that we were forced to reresolve and retry.
self.assertGreater(worker_vars['WorkerDestinationActualResolves'], 1)