summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-05-01 14:14:01 +1000
committerMark Lapierre <mlapierre@gitlab.com>2019-05-01 14:14:01 +1000
commita5af21cf13869eddf6492c4db727419bf87bb415 (patch)
tree21a66081dc32290163b0042e01e8ae7de5c89473 /qa
parentf15f9970ab73c1474a45734bd3b792a838b2c4d2 (diff)
downloadgitlab-ce-a5af21cf13869eddf6492c4db727419bf87bb415.tar.gz
Make max wait time a constant
So it can be used elsewhere in the code
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/support/waiter.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/qa/qa/support/waiter.rb b/qa/qa/support/waiter.rb
index 21a399b4a5f..fdcf2d7e157 100644
--- a/qa/qa/support/waiter.rb
+++ b/qa/qa/support/waiter.rb
@@ -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