зеркало из https://github.com/github/ruby.git
Update test dependencies
This commit is contained in:
Родитель
b7674a1285
Коммит
b2ee760f30
|
@ -15,13 +15,15 @@ RSpec.describe "gemcutter's dependency API" do
|
|||
# mustermann depends on URI::RFC2396_PARSER behavior
|
||||
URI.parser = URI::RFC2396_PARSER if URI.respond_to?(:parser=)
|
||||
|
||||
require "rackup/server"
|
||||
|
||||
@t = Thread.new do
|
||||
server = Rack::Server.start(app: EndpointTimeout,
|
||||
Host: "0.0.0.0",
|
||||
Port: port,
|
||||
server: "webrick",
|
||||
AccessLog: [],
|
||||
Logger: Spec::SilentLogger.new)
|
||||
server = Rackup::Server.start(app: EndpointTimeout,
|
||||
Host: "0.0.0.0",
|
||||
Port: port,
|
||||
server: "webrick",
|
||||
AccessLog: [],
|
||||
Logger: Spec::SilentLogger.new)
|
||||
server.start
|
||||
end
|
||||
@t.run
|
||||
|
|
|
@ -39,13 +39,15 @@ RSpec.describe "fetching dependencies with a mirrored source", realworld: true d
|
|||
|
||||
require_relative "../support/artifice/endpoint_mirror_source"
|
||||
|
||||
require "rackup/server"
|
||||
|
||||
@t = Thread.new do
|
||||
Rack::Server.start(app: EndpointMirrorSource,
|
||||
Host: "0.0.0.0",
|
||||
Port: @port,
|
||||
server: "webrick",
|
||||
AccessLog: [],
|
||||
Logger: Spec::SilentLogger.new)
|
||||
Rackup::Server.start(app: EndpointMirrorSource,
|
||||
Host: "0.0.0.0",
|
||||
Port: @port,
|
||||
server: "webrick",
|
||||
AccessLog: [],
|
||||
Logger: Spec::SilentLogger.new)
|
||||
end.run
|
||||
|
||||
wait_for_server("127.0.0.1", @port)
|
||||
|
|
|
@ -112,13 +112,15 @@ RSpec.describe "fetching dependencies with a not available mirror", realworld: t
|
|||
|
||||
require_relative "../support/artifice/endpoint"
|
||||
|
||||
require "rackup/server"
|
||||
|
||||
@server_thread = Thread.new do
|
||||
Rack::Server.start(app: Endpoint,
|
||||
Host: host,
|
||||
Port: @server_port,
|
||||
server: "webrick",
|
||||
AccessLog: [],
|
||||
Logger: Spec::SilentLogger.new)
|
||||
Rackup::Server.start(app: Endpoint,
|
||||
Host: host,
|
||||
Port: @server_port,
|
||||
server: "webrick",
|
||||
AccessLog: [],
|
||||
Logger: Spec::SilentLogger.new)
|
||||
end.run
|
||||
|
||||
wait_for_server(host, @server_port)
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "rack", "~> 2.0"
|
||||
gem "rack", "~> 3.0"
|
||||
gem "rackup", "~> 2.1"
|
||||
gem "base64"
|
||||
gem "webrick", "1.7.0"
|
||||
gem "rack-test", "~> 1.1"
|
||||
gem "webrick", "~> 1.8"
|
||||
gem "rack-test", "~> 2.1"
|
||||
gem "compact_index", "~> 0.15.0"
|
||||
gem "sinatra", "~> 3.0"
|
||||
gem "sinatra", "~> 4.0"
|
||||
gem "rake", "~> 13.1"
|
||||
gem "builder", "~> 3.2"
|
||||
gem "rb_sys"
|
||||
|
|
Загрузка…
Ссылка в новой задаче