Commit a5af21cf authored by Mark Lapierre's avatar Mark Lapierre

Make max wait time a constant

So it can be used elsewhere in the code
parent f15f9970
...@@ -3,9 +3,11 @@ ...@@ -3,9 +3,11 @@
module QA module QA
module Support module Support
module Waiter module Waiter
DEFAULT_MAX_WAIT_TIME = 60
module_function 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}") QA::Runtime::Logger.debug("with wait: max #{max}; interval #{interval}")
start = Time.now start = Time.now
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment