spec/redis_mutex_spec.rb in redis-mutex-4.0.0 vs spec/redis_mutex_spec.rb in redis-mutex-4.0.1
- old
+ new
@@ -153,10 +153,9 @@
describe 'stress test' do
LOOP_NUM = 1000
def run(id)
print "invoked worker #{id}...\n"
- RedisClassy.redis.client.reconnect
mutex = RedisMutex.new(:test_lock, :expire => 1, :block => 10, :sleep => 0.01)
result = 0
LOOP_NUM.times do |i|
mutex.with_lock do
result += 1