Increase default wait timeout in UAT helpers
This commit is contained in:
parent
42751993a2
commit
4c9342c2f2
@ -4,6 +4,8 @@ module Uh
|
|||||||
module WM
|
module WM
|
||||||
module Testing
|
module Testing
|
||||||
module AcceptanceHelpers
|
module AcceptanceHelpers
|
||||||
|
TIMEOUT_DEFAULT = 2
|
||||||
|
|
||||||
def uhwm_run options = '-v'
|
def uhwm_run options = '-v'
|
||||||
command = %w[uhwm]
|
command = %w[uhwm]
|
||||||
command << options if options
|
command << options if options
|
||||||
@ -114,7 +116,7 @@ module Uh
|
|||||||
def timeout_until
|
def timeout_until
|
||||||
timeout = ENV.key?('UHWMTEST_TIMEOUT') ?
|
timeout = ENV.key?('UHWMTEST_TIMEOUT') ?
|
||||||
ENV['UHWMTEST_TIMEOUT'].to_i :
|
ENV['UHWMTEST_TIMEOUT'].to_i :
|
||||||
1
|
TIMEOUT_DEFAULT
|
||||||
Timeout.timeout(timeout) do
|
Timeout.timeout(timeout) do
|
||||||
loop do
|
loop do
|
||||||
break if yield
|
break if yield
|
||||||
|
Loading…
x
Reference in New Issue
Block a user