mirror of
https://github.com/dkam/suo.git
synced 2025-01-29 07:42:43 +00:00
fix test cases when memcached is delayed
This commit is contained in:
@@ -75,8 +75,8 @@ module ClientTests
|
|||||||
|
|
||||||
100.times.map do |i|
|
100.times.map do |i|
|
||||||
Thread.new do
|
Thread.new do
|
||||||
success = @client.lock(TEST_KEY, 50, retry_timeout: 0.9) do
|
success = @client.lock(TEST_KEY, 50, retry_timeout: 0.5) do
|
||||||
sleep(1)
|
sleep(2)
|
||||||
success_counter << i
|
success_counter << i
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user