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 Testing
|
||||
module AcceptanceHelpers
|
||||
TIMEOUT_DEFAULT = 2
|
||||
|
||||
def uhwm_run options = '-v'
|
||||
command = %w[uhwm]
|
||||
command << options if options
|
||||
@ -114,7 +116,7 @@ module Uh
|
||||
def timeout_until
|
||||
timeout = ENV.key?('UHWMTEST_TIMEOUT') ?
|
||||
ENV['UHWMTEST_TIMEOUT'].to_i :
|
||||
1
|
||||
TIMEOUT_DEFAULT
|
||||
Timeout.timeout(timeout) do
|
||||
loop do
|
||||
break if yield
|
||||
|
Loading…
x
Reference in New Issue
Block a user