class Failbot::WaiterBackend

Attributes

reports[R]

This backend waits a configured amount of time before returning. This is intended be used to test timeouts. Delay is the number of seconds to wait.

Public Class Methods

new(delay = 5) click to toggle source
# File lib/failbot/waiter_backend.rb, line 7
def initialize(delay = 5)
  @delay = delay
  @reports = []
end

Public Instance Methods

ping() click to toggle source
# File lib/failbot/waiter_backend.rb, line 17
def ping
  # nop
end
report(data) click to toggle source
# File lib/failbot/waiter_backend.rb, line 12
def report(data)
  @reports << data
  sleep(@delay)
end