From d66939ff4af362d67043b1ee73c70786c84b66a7 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Tue, 24 Jul 2012 10:51:58 +0200 Subject: [PATCH] Don't use the (internal) .enqueue_call() in unit tests. --- tests/test_worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_worker.py b/tests/test_worker.py index 8b12c6aa..9ea338b8 100644 --- a/tests/test_worker.py +++ b/tests/test_worker.py @@ -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)