extend wait_for in case redis chokes up in test
This commit is contained in:
parent
283d42d6f3
commit
c5b5c861f6
|
@ -64,7 +64,7 @@ module Helpers
|
||||||
def wait_for(&blk)
|
def wait_for(&blk)
|
||||||
i = 0
|
i = 0
|
||||||
result = false
|
result = false
|
||||||
while !result && i < 300
|
while !result && i < 1000
|
||||||
result = blk.call
|
result = blk.call
|
||||||
i += 1
|
i += 1
|
||||||
sleep 0.001
|
sleep 0.001
|
||||||
|
|
Loading…
Reference in New Issue