From 548593c6b3d52a4bebd52542ad9c423ed2b7252d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Jun 2023 10:12:41 +0000 Subject: [PATCH 12/23] test_exec: drop test_basic and test_config_ru_alt_path We already have coverage for these basic things elsewhere. --- test/exec/test_exec.rb | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb index 1d3a0fd..55f828e 100644 --- a/test/exec/test_exec.rb +++ b/test/exec/test_exec.rb @@ -265,16 +265,6 @@ def test_exit_signals end end - def test_basic - File.open("config.ru", "wb") { |fp| fp.syswrite(HI) } - pid = fork do - redirect_test_io { exec($unicorn_bin, "-l", "#{@addr}:#{@port}") } - end - results = retry_hit(["http://#{@addr}:#{@port}/"]) - assert_equal String, results[0].class - assert_shutdown(pid) - end - def test_rack_env_unset File.open("config.ru", "wb") { |fp| fp.syswrite(SHOW_RACK_ENV) } pid = fork { redirect_test_io { exec($unicorn_bin, "-l#@addr:#@port") } } @@ -638,20 +628,6 @@ def test_read_embedded_cli_switches assert_shutdown(pid) end - def test_config_ru_alt_path - config_path = "#{@tmpdir}/foo.ru" - File.open(config_path, "wb") { |fp| fp.syswrite(HI) } - pid = fork do - redirect_test_io do - Dir.chdir("/") - exec($unicorn_bin, "-l#{@addr}:#{@port}", config_path) - end - end - results = retry_hit(["http://#{@addr}:#{@port}/"]) - assert_equal String, results[0].class - assert_shutdown(pid) - end - def test_load_module libdir = "#{@tmpdir}/lib" FileUtils.mkpath([ libdir ])