Remove thin? and add rainbows? in integration_test.
This commit is contained in:
parent
b989bdaa45
commit
559f01a295
|
@ -61,7 +61,7 @@ module IntegrationHelper
|
||||||
file, dir = RbConfig::CONFIG.values_at('ruby_install_name', 'bindir')
|
file, dir = RbConfig::CONFIG.values_at('ruby_install_name', 'bindir')
|
||||||
cmd << File.expand_path(file, dir).inspect
|
cmd << File.expand_path(file, dir).inspect
|
||||||
end
|
end
|
||||||
cmd << "-w" unless thin? || net_http_server?
|
cmd << "-w" unless net_http_server?
|
||||||
cmd << "-I" << File.expand_path('../../lib', __FILE__).inspect
|
cmd << "-I" << File.expand_path('../../lib', __FILE__).inspect
|
||||||
cmd << app_file.inspect << '-s' << server << '-o' << '127.0.0.1' << '-p' << port
|
cmd << app_file.inspect << '-s' << server << '-o' << '127.0.0.1' << '-p' << port
|
||||||
cmd << "-e" << environment.to_s << '2>&1'
|
cmd << "-e" << environment.to_s << '2>&1'
|
||||||
|
@ -73,8 +73,8 @@ module IntegrationHelper
|
||||||
name.to_s == "webrick"
|
name.to_s == "webrick"
|
||||||
end
|
end
|
||||||
|
|
||||||
def thin?
|
def rainbows?
|
||||||
name.to_s == "thin"
|
name.to_s == "rainbows"
|
||||||
end
|
end
|
||||||
|
|
||||||
def puma?
|
def puma?
|
||||||
|
|
|
@ -40,7 +40,7 @@ class IntegrationTest < Minitest::Test
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'streams async' do
|
it 'streams async' do
|
||||||
next unless server.thin?
|
next unless server.rainbows?
|
||||||
|
|
||||||
Timeout.timeout(3) do
|
Timeout.timeout(3) do
|
||||||
chunks = []
|
chunks = []
|
||||||
|
@ -58,7 +58,7 @@ class IntegrationTest < Minitest::Test
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'streams async from subclass' do
|
it 'streams async from subclass' do
|
||||||
next unless server.thin?
|
next unless server.rainbows?
|
||||||
|
|
||||||
Timeout.timeout(3) do
|
Timeout.timeout(3) do
|
||||||
chunks = []
|
chunks = []
|
||||||
|
|
Loading…
Reference in New Issue