Fix a flaky test.

This commit is contained in:
Craig Citro
2014-12-12 17:21:27 -08:00
parent 4dcecfa26e
commit b5507eb1dc

View File

@@ -651,7 +651,7 @@ class BasicCredentialsTests(unittest.TestCase):
self.assertFalse(self.credentials.access_token_expired)
self.assertEqual(token_response_first, self.credentials.token_response)
time.sleep(S)
time.sleep(S + 0.5) # some margin to avoid flakiness
self.assertTrue(self.credentials.access_token_expired)
token = self.credentials.get_access_token(http=http)