summaryrefslogtreecommitdiff
path: root/qa/qa/support/retrier.rb
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-07-12 11:31:49 +0500
committerSanad Liaquat <sliaquat@gitlab.com>2019-07-12 11:31:49 +0500
commitf4a4f6e28aaaaa157ab6bc91d41a22cdea4fab8a (patch)
tree04fef2081772be06dafc18fee1dae45b61c5c6a2 /qa/qa/support/retrier.rb
parent0b71325dc00ac459636625e743133c0bc0b4cb33 (diff)
downloadgitlab-ce-qa-nightly-115-fix-retry-until.tar.gz
Fix page refresh in retry_untilqa-nightly-115-fix-retry-until
Diffstat (limited to 'qa/qa/support/retrier.rb')
-rw-r--r--qa/qa/support/retrier.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/qa/support/retrier.rb b/qa/qa/support/retrier.rb
index 230cec8f8d2..720f1d17037 100644
--- a/qa/qa/support/retrier.rb
+++ b/qa/qa/support/retrier.rb
@@ -24,8 +24,8 @@ module QA
end
end
- def retry_until(max_attempts: 3, reload: false, sleep_interval: 0)
- QA::Runtime::Logger.debug("with retry_until: max_attempts #{max_attempts}; sleep_interval #{sleep_interval}; reload:#{reload}")
+ def retry_until(max_attempts: 3, reload_page: nil, sleep_interval: 0)
+ QA::Runtime::Logger.debug("with retry_until: max_attempts #{max_attempts}; sleep_interval #{sleep_interval}; reload_page:#{reload_page}")
attempts = 0
while attempts < max_attempts
@@ -35,7 +35,7 @@ module QA
sleep sleep_interval
- refresh if reload
+ reload_page.refresh if reload_page
attempts += 1
end