Make max wait time a constant

So it can be used elsewhere in the code
This commit is contained in:
Mark Lapierre 2019-05-01 14:14:01 +10:00
parent f15f9970ab
commit a5af21cf13

View file

@ -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