bundle-new/spec/support/artifice/endpoint_timeout.rb

14 lines
252 B
Ruby
Raw Normal View History

2019-10-06 15:45:34 +00:00
require File.expand_path("../endpoint_fallback", __FILE__)
Artifice.deactivate
class EndpointTimeout < EndpointFallback
SLEEP_TIMEOUT = 15
get "/api/v1/dependencies" do
sleep(SLEEP_TIMEOUT)
end
end
Artifice.activate_with(EndpointTimeout)