Skip to content

Commit

Permalink
fix test cases when memcached is delayed
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelser committed Apr 13, 2015
1 parent 887219b commit a2fa281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def test_instance_multiple_resource_locking

100.times.map do |i|
Thread.new do
success = @client.lock(TEST_KEY, 50, retry_timeout: 0.9) do
sleep(1)
success = @client.lock(TEST_KEY, 50, retry_timeout: 0.5) do
sleep(2)
success_counter << i
end

Expand Down

0 comments on commit a2fa281

Please sign in to comment.