From 13756698885221554632ab960e20df91b7e6d192 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Thu, 25 Aug 2016 17:49:25 -0400 Subject: [PATCH] Make the test a bit more lenient If it's not 'fast' enough that's OK, we're mostly trying to make sure we don't go too fast --- test/tasks/test_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tasks/test_base.py b/test/tasks/test_base.py index 5054ca1..e200d2b 100644 --- a/test/tasks/test_base.py +++ b/test/tasks/test_base.py @@ -118,9 +118,9 @@ class RateLimitTest(MongoTest): end = datetime.now() # Check that we acquired the lock assert did_acquire - # Check that we only used one backoff period + # Check that we used at least one backoff period total_seconds = (end - start).total_seconds() - assert 1 < total_seconds < 2 + assert 1 < total_seconds def test_sleep_for_gives_correct_time(self): ratelimit = MongoRateLimit()