spec/acquired_spec.rb in mongo-lock-1.0.0 vs spec/acquired_spec.rb in mongo-lock-1.1.0
- old
+ new
@@ -26,12 +26,12 @@
end
context "when the lock was acquired but has since expired" do
it "returns false" do
- collection.insert key: 'my_lock', owner: 'spence', expires_at: 0.01.seconds.from_now
+ collection.insert key: 'my_lock', owner: 'spence', expires_at: 0.1.seconds.from_now
lock.acquire
- sleep 0.02
+ sleep 0.2
expect(lock.acquired?).to be_false
end
end