You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it'accepts hashes responding to call like ActiveSupport::OrderedOptions'docallable_hash=Class.new(Hash)dodefcall;endendconfig=callable_hash.new.merge(url: "redis://#{redis1_host}:#{redis1_port}")_redlock=Redlock::Client.new([config])lock_info=lock_manager.lock(resource_key,ttl)expect(lock_info).tobe_a(Hash)expect(resource_key).to_notbe_lockable(lock_manager,ttl)lock_manager.unlock(lock_info)end
This was not failing, because lock_manager was using its own client, and the previous initialization was not used at all
Yes, according to the intent of what I see. But at that point _redlock does not make much sense because it is a used variable, so I would either go for redlock or redefine lock_manager.
Hello,
while implementing #153 I've noticed that the newly instantiated redlock client is not being used by the spec, leading to false positives
redlock-rb/spec/client_spec.rb
Lines 48 to 66 in f176e57
Example
This was not failing, because
lock_manager
was using its own client, and the previous initialization was not used at allThe text was updated successfully, but these errors were encountered: