mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 22:14:37 +02:00

* lib/bundler, spec/bundler: Merge bundler-1.16.0. * common.mk: rspec examples of bundler-1.16.0 needs require option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
15 lines
282 B
Ruby
15 lines
282 B
Ruby
# frozen_string_literal: true
|
|
|
|
require File.expand_path("../endpoint_fallback", __FILE__)
|
|
|
|
Artifice.deactivate
|
|
|
|
class EndpointTimeout < EndpointFallback
|
|
SLEEP_TIMEOUT = 3
|
|
|
|
get "/api/v1/dependencies" do
|
|
sleep(SLEEP_TIMEOUT)
|
|
end
|
|
end
|
|
|
|
Artifice.activate_with(EndpointTimeout)
|