Skip to content

Commit ec062ff

Browse files
caroncauvipy
authored andcommitted
fixes test so that it passes on CentOS 7.x with celery v3.1.24 (#512)
1 parent 5d5f397 commit ec062ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

djcelery/tests/test_schedulers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ def test_schedule_changed(self):
167167
def test_should_sync(self):
168168
self.assertTrue(self.s.should_sync())
169169
self.s._last_sync = monotonic()
170+
self.s._tasks_since_sync = 0
170171
self.assertFalse(self.s.should_sync())
171-
self.s._last_sync -= self.s.sync_every
172+
self.s._last_sync -= self.s.sync_every + 1
172173
self.assertTrue(self.s.should_sync())
173174

174175
def test_reserve(self):

0 commit comments

Comments
 (0)