spec/redis_mutex_spec.rb in redis-mutex-1.2.3 vs spec/redis_mutex_spec.rb in redis-mutex-1.3.0

- old
+ new

@@ -43,10 +43,10 @@ mutex.get.should_not be_nil # lock value should still be set end it "should not remove the key if lock is held past expiration" do mutex = Redis::Mutex.new(:test_lock, :expire => 0.1, :block => 0) - mutex.lock + mutex.lock.should be_true sleep 0.2 # lock expired # someone overwrites the expired lock mutex2 = Redis::Mutex.new(:test_lock, :expire => 10, :block => 0) mutex2.lock.should be_true