mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Even more JRuby skips/fixes
This commit is contained in:
parent
89be0977fc
commit
a90c73948a
3 changed files with 9 additions and 5 deletions
|
@ -23,10 +23,13 @@ class TestIntegration < Minitest::Test
|
|||
stop_server @pid, signal: :INT
|
||||
end
|
||||
|
||||
if @ios_to_close
|
||||
@ios_to_close.each do |io|
|
||||
io.close if io.is_a?(IO) && !io.closed?
|
||||
io = nil
|
||||
end
|
||||
end
|
||||
|
||||
refute File.exist?(@bind_path), "Bind path must be removed after stop"
|
||||
File.unlink(@bind_path) rescue nil
|
||||
|
||||
|
|
|
@ -284,7 +284,7 @@ class TestBinder < TestBinderBase
|
|||
sock = Addrinfo.unix(path).listen
|
||||
assert_activates_sockets(path: path, sock: sock)
|
||||
ensure
|
||||
File.unlink path if path
|
||||
File.unlink(path) rescue nil # JRuby race?
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -14,11 +14,12 @@ class TestRedirectIO < TestIntegration
|
|||
def teardown
|
||||
super
|
||||
|
||||
paths = [@out_file_path, @err_file_path, @old_out_file_path, @old_err_file_path]
|
||||
paths = [@out_file_path, @err_file_path, @old_out_file_path, @old_err_file_path].compact
|
||||
File.unlink(*paths)
|
||||
end
|
||||
|
||||
def test_sighup_redirects_io_single
|
||||
skip_on :jruby # Server isn't coming up in CI, TODO Fix
|
||||
skip_unless_signal_exist? :HUP
|
||||
|
||||
cli_args = [
|
||||
|
|
Loading…
Reference in a new issue