Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/support/repeater.rb')
-rw-r--r--qa/qa/support/repeater.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/qa/qa/support/repeater.rb b/qa/qa/support/repeater.rb
index 1b9aa809051..6956987de05 100644
--- a/qa/qa/support/repeater.rb
+++ b/qa/qa/support/repeater.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true
require 'active_support/inflector'
-require 'rainbow/refinement'
module QA
module Support
@@ -40,7 +39,9 @@ module QA
QA::Runtime::Logger.debug(msg.join(' '))
end
- QA::Runtime::Logger.debug("Attempt number #{attempts + 1}".bg(:yellow).black) if log && max_attempts && attempts > 0
+ if log && max_attempts && attempts > 0
+ QA::Runtime::Logger.debug("Attempt number #{attempts + 1}".bg(:yellow).black)
+ end
result = yield
if result