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

This commit is contained in:
Vincent Driessen 2012-07-24 10:51:58 +02:00
parent f6374f2dfa
commit d66939ff4a
1 changed files with 2 additions and 2 deletions

View File

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