summaryrefslogtreecommitdiff
path: root/qa/qa/support/otp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/support/otp.rb')
-rw-r--r--qa/qa/support/otp.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/qa/qa/support/otp.rb b/qa/qa/support/otp.rb
index 0d7c394cf69..0a0dc64a726 100644
--- a/qa/qa/support/otp.rb
+++ b/qa/qa/support/otp.rb
@@ -13,11 +13,14 @@ module QA
# Fetches a fresh OTP and returns it only after rotp provides the same OTP twice
# An OTP is valid for 30 seconds so 70 attempts with 0.5 interval would ensure we complete 1 cycle
- Support::Retrier.retry_until(max_attempts: 70, sleep_interval: 0.5) do
+
+ QA::Runtime::Logger.debug("Fetching a fresh OTP...")
+ Support::Retrier.retry_until(max_attempts: 70, sleep_interval: 0.5, log: false) do
otps << @rotp.now
otps.size >= 3 && otps[-1] == otps[-2] && otps[-1] != otps[-3]
end
+ QA::Runtime::Logger.debug("Fetched OTP: #{otps.last}")
otps.last
end
end