Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bundler/spec/install/gems/dependency_api_fallback_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

require_relative "../../support/artifice/endpoint_timeout"

# mustermann depends on URI::RFC2396_PARSER behavior
URI.parser = URI::RFC2396_PARSER if URI.respond_to?(:parser=)

@t = Thread.new do
server = Rack::Server.start(app: EndpointTimeout,
Host: "0.0.0.0",
Expand All @@ -31,6 +34,8 @@
Artifice.deactivate
@t.kill
@t.join

URI.parser = URI::DEFAULT_PARSER if URI.respond_to?(:parser=)
end

it "times out and falls back on the modern index" do
Expand Down