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 'lib/gitlab/checks/timed_logger.rb')
-rw-r--r--lib/gitlab/checks/timed_logger.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gitlab/checks/timed_logger.rb b/lib/gitlab/checks/timed_logger.rb
index 11c08429d3d..f365e0a43f6 100644
--- a/lib/gitlab/checks/timed_logger.rb
+++ b/lib/gitlab/checks/timed_logger.rb
@@ -7,7 +7,7 @@ module Gitlab
attr_reader :start_time, :header, :log, :timeout
- def initialize(start_time: Time.now, log: [], timeout:, header: "")
+ def initialize(start_time: Time.now, log: [], header: "", timeout:)
@start_time = start_time
@timeout = timeout
@header = header
@@ -15,7 +15,9 @@ module Gitlab
end
# Adds trace of method being tracked with
- # the correspondent time it took to run it
+ # the correspondent time it took to run it.
+ # We make use of the start default argument
+ # on unit tests related to this method
#
def log_timed(log_message, start = Time.now)
check_timeout_reached