|
|
@ -27,6 +27,10 @@ class TestRegistry(RQTestCase):
|
|
|
|
self.assertLess(self.testconn.zscore(self.registry.key, job.id),
|
|
|
|
self.assertLess(self.testconn.zscore(self.registry.key, job.id),
|
|
|
|
timestamp + 1002)
|
|
|
|
timestamp + 1002)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Ensure that a timeout of -1 results in a score of -1
|
|
|
|
|
|
|
|
self.registry.add(job, -1)
|
|
|
|
|
|
|
|
self.assertEqual(self.testconn.zscore(self.registry.key, job.id), -1)
|
|
|
|
|
|
|
|
|
|
|
|
# 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)
|
|
|
|
self.assertIsNone(self.testconn.zscore(self.registry.key, job.id))
|
|
|
|
self.assertIsNone(self.testconn.zscore(self.registry.key, job.id))
|
|
|
|