blob: 86b793e4998e7f87e3ae87da34b01d4f4706b47a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
require_relative "helpers/endpoint_fallback"
class EndpointTimeout < EndpointFallback
SLEEP_TIMEOUT = 3
get "/api/v1/dependencies" do
sleep(SLEEP_TIMEOUT)
end
end
require_relative "helpers/artifice"
Artifice.activate_with(EndpointTimeout)
|