mirror of https://github.com/rq/rq.git
Fixed random registry failures when run on slower machines.
This commit is contained in:
parent
5a27ad540f
commit
dc12f8aee5
|
@ -25,7 +25,7 @@ class TestQueue(RQTestCase):
|
||||||
# Test that job is added with the right score
|
# Test that job is added with the right score
|
||||||
self.registry.add(job, 1000)
|
self.registry.add(job, 1000)
|
||||||
self.assertLess(self.testconn.zscore(self.registry.key, job.id),
|
self.assertLess(self.testconn.zscore(self.registry.key, job.id),
|
||||||
timestamp + 1001)
|
timestamp + 1002)
|
||||||
|
|
||||||
# Ensure that job is properly removed from sorted set
|
# Ensure that job is properly removed from sorted set
|
||||||
self.registry.remove(job)
|
self.registry.remove(job)
|
Loading…
Reference in New Issue