Module: Buildkite::TestCollector::Object::CustomObjectSleep

Defined in:
lib/buildkite/test_collector/object.rb

Instance Method Summary collapse

Instance Method Details

#sleep(duration = nil) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/buildkite/test_collector/object.rb', line 6

def sleep(duration = nil)
  tracer = Buildkite::TestCollector::Uploader.tracer
  tracer&.enter("sleep")

  if duration
    super(duration)
  else
    super()
  end
ensure
  tracer&.leave
end