From 559f01a295814f3de6847960705a3b24d5600aa1 Mon Sep 17 00:00:00 2001 From: Ryuichi KAWAMATA Date: Sun, 26 Jul 2020 18:10:00 +0900 Subject: [PATCH] Remove thin? and add rainbows? in integration_test. --- test/integration_helper.rb | 6 +++--- test/integration_test.rb | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration_helper.rb b/test/integration_helper.rb index aa277007..b3b2c7c5 100644 --- a/test/integration_helper.rb +++ b/test/integration_helper.rb @@ -61,7 +61,7 @@ module IntegrationHelper file, dir = RbConfig::CONFIG.values_at('ruby_install_name', 'bindir') cmd << File.expand_path(file, dir).inspect end - cmd << "-w" unless thin? || net_http_server? + cmd << "-w" unless net_http_server? cmd << "-I" << File.expand_path('../../lib', __FILE__).inspect cmd << app_file.inspect << '-s' << server << '-o' << '127.0.0.1' << '-p' << port cmd << "-e" << environment.to_s << '2>&1' @@ -73,8 +73,8 @@ module IntegrationHelper name.to_s == "webrick" end - def thin? - name.to_s == "thin" + def rainbows? + name.to_s == "rainbows" end def puma? diff --git a/test/integration_test.rb b/test/integration_test.rb index 1e9f41b5..befe6960 100644 --- a/test/integration_test.rb +++ b/test/integration_test.rb @@ -40,7 +40,7 @@ class IntegrationTest < Minitest::Test end it 'streams async' do - next unless server.thin? + next unless server.rainbows? Timeout.timeout(3) do chunks = [] @@ -58,7 +58,7 @@ class IntegrationTest < Minitest::Test end it 'streams async from subclass' do - next unless server.thin? + next unless server.rainbows? Timeout.timeout(3) do chunks = []