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