spec/spec_helper.rb
# Sleep helpers for testing threaded code.
Sleep helpers for testing threaded code.
Sleep helpers for testing threaded code .
def sleep_until_equal(expected, timeout: SLEEP_UNTIL_TIMEOUT)
    actual = nil
    sleep_until?(timeout: timeout) do
      actual = yield
      actual == expected
    end || raise("sleep_until_equal: expected #{expected.inspect}, got #{actual.inspect}")
  end
def sleep_until_equal ( expected , timeout : SLEEP_UNTIL_TIMEOUT ) actual = nil sleep_until? ( timeout : timeout ) do actual = yield actual == expected end || raise ( "sleep_until_equal: expected #{expected.inspect}, got #{actual.inspect}" ) end
Sleep helpers for testing threaded code.
Sleep helpers for testing threaded code .
expected
timeout