Don't use the (internal) .enqueue_call() in unit tests.

main
Vincent Driessen 13 years ago
parent f6374f2dfa
commit d66939ff4a

@ -157,8 +157,8 @@ class TestWorker(RQTestCase):
w = Worker([q]) w = Worker([q])
# Put it on the queue with a timeout value # Put it on the queue with a timeout value
res = q.enqueue_call( res = q.enqueue(
func=create_file_after_timeout, create_file_after_timeout,
args=(sentinel_file, 4), args=(sentinel_file, 4),
timeout=1) timeout=1)

Loading…
Cancel
Save