Merge "Fix timestamp race occurring on fast systems"

This commit is contained in:
Zuul 2019-09-11 17:44:53 +00:00 committed by Gerrit Code Review
commit b98f1d28cb
1 changed files with 1 additions and 1 deletions

View File

@ -147,5 +147,5 @@ class TestWebTokenClient(BaseClientTestCase):
admin_tenants = token.get('zuul', {}).get('admin', [])
self.assertTrue('tenant_one' in admin_tenants, admin_tenants)
# allow one minute for the process to run
self.assertTrue(600 <= int(token['exp']) - now < 660,
self.assertTrue(580 <= int(token['exp']) - now < 660,
(token['exp'], now))