From dc12f8aee5b725bb4fcb16ffa0e7d9c7534008c9 Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Mon, 8 Sep 2014 22:54:04 +0700 Subject: [PATCH] Fixed random registry failures when run on slower machines. --- tests/{test_working_queue.py => test_job_started_registry.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename tests/{test_working_queue.py => test_job_started_registry.py} (98%) diff --git a/tests/test_working_queue.py b/tests/test_job_started_registry.py similarity index 98% rename from tests/test_working_queue.py rename to tests/test_job_started_registry.py index 9830f22..e8241b5 100644 --- a/tests/test_working_queue.py +++ b/tests/test_job_started_registry.py @@ -25,7 +25,7 @@ class TestQueue(RQTestCase): # Test that job is added with the right score self.registry.add(job, 1000) self.assertLess(self.testconn.zscore(self.registry.key, job.id), - timestamp + 1001) + timestamp + 1002) # Ensure that job is properly removed from sorted set self.registry.remove(job)