1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Disable worker dependent test on jruby

This commit is contained in:
Evan Phoenix 2016-01-27 21:08:04 -08:00
parent 2af80d69d1
commit 8969ddf4ff

View file

@ -133,19 +133,6 @@ class TestCLI < Test::Unit::TestCase
assert m, "'#{url}' is not a URL"
end
end # JRUBY or Windows
def test_state
url = "tcp://127.0.0.1:8232"
cli = Puma::CLI.new ["--state", @tmp_path, "--control", url]
cli.send(:parse_options)
cli.write_state
data = YAML.load File.read(@tmp_path)
assert_equal Process.pid, data["pid"]
assert_equal url, data["config"].options[:control_url]
end
def test_state_file_callback_filtering
cli = Puma::CLI.new [ "--config", "test/config/state_file_testing_config.rb",
@ -162,6 +149,20 @@ class TestCLI < Test::Unit::TestCase
assert_empty keys_not_stripped
end
end # JRUBY or Windows
def test_state
url = "tcp://127.0.0.1:8232"
cli = Puma::CLI.new ["--state", @tmp_path, "--control", url]
cli.send(:parse_options)
cli.write_state
data = YAML.load File.read(@tmp_path)
assert_equal Process.pid, data["pid"]
assert_equal url, data["config"].options[:control_url]
end
def test_load_path
cli = Puma::CLI.new ["--include", 'foo/bar']
cli.send(:parse_options)