diff options
author | Eric Wong <BOFH@YHBT.net> | 2023-06-05 10:12:41 +0000 |
---|---|---|
committer | Eric Wong <bofh@yhbt.net> | 2023-06-05 10:38:49 +0000 |
commit | 60c17fdfa856aea2312d7ecbbec6478215fa1c18 (patch) | |
tree | b67370da0a3880c66632191e27936d1e4deab245 /test | |
parent | edb47aec2befe73fa953d00d85074d36d3307120 (diff) | |
download | unicorn-60c17fdfa856aea2312d7ecbbec6478215fa1c18.tar.gz |
We already have coverage for these basic things elsewhere.
Diffstat (limited to 'test')
-rw-r--r-- | test/exec/test_exec.rb | 24 |
1 files changed, 0 insertions, 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 @@ EOF 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 @@ EOF 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 ]) |