Skip to content

Commit

Permalink
Made some test times more leaniant
Browse files Browse the repository at this point in the history
  • Loading branch information
msaspence committed Feb 24, 2014
1 parent fce274d commit a8ad96a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/extend_by_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe Mongo::Lock do

let(:lock) { Mongo::Lock.new 'my_lock', owner: 'spence', timeout_in: 0.01, frequency: 0.01, expire_in: 0.1 }
let(:lock) { Mongo::Lock.new 'my_lock', owner: 'spence', timeout_in: 0.01, frequency: 0.01, expire_in: 1 }

describe '#extend_by' do

Expand All @@ -23,6 +23,8 @@

context "when the lock has expired" do

let(:lock) { Mongo::Lock.new 'my_lock', owner: 'spence', timeout_in: 0.01, frequency: 0.01, expire_in: 0.11 }

it "returns false" do
lock.acquire
sleep 0.11
Expand Down

0 comments on commit a8ad96a

Please sign in to comment.