Make max wait time a constant
So it can be used elsewhere in the code
This commit is contained in:
parent
f15f9970ab
commit
a5af21cf13
1 changed files with 3 additions and 1 deletions
|
@ -3,9 +3,11 @@
|
|||
module QA
|
||||
module Support
|
||||
module Waiter
|
||||
DEFAULT_MAX_WAIT_TIME = 60
|
||||
|
||||
module_function
|
||||
|
||||
def wait(max: 60, interval: 0.1)
|
||||
def wait(max: DEFAULT_MAX_WAIT_TIME, interval: 0.1)
|
||||
QA::Runtime::Logger.debug("with wait: max #{max}; interval #{interval}")
|
||||
start = Time.now
|
||||
|
||||
|
|
Loading…
Reference in a new issue