From 1847a3929c79b8fcf6f2a9ffde27c42a42a8267f Mon Sep 17 00:00:00 2001 From: Seamus Abshere Date: Fri, 11 Sep 2015 19:16:05 -0300 Subject: [PATCH] tests green --- lib/redlock/testing.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redlock/testing.rb b/lib/redlock/testing.rb index 4de00ff..4524196 100644 --- a/lib/redlock/testing.rb +++ b/lib/redlock/testing.rb @@ -4,7 +4,7 @@ class Client alias_method :try_lock_instances_without_testing, :try_lock_instances - def try_lock_instances(resource, ttl) + def try_lock_instances(resource, ttl, extend) if @testing_mode == :bypass { validity: ttl, @@ -14,7 +14,7 @@ def try_lock_instances(resource, ttl) elsif @testing_mode == :fail false else - try_lock_instances_without_testing resource, ttl + try_lock_instances_without_testing resource, ttl, extend end end