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

JRuby bind path may not exist

This commit is contained in:
Nate Berkopec 2020-03-14 13:53:31 -06:00
parent 85aa134431
commit ab64901504
No known key found for this signature in database
GPG key ID: BDD7A4B8E43906A6

View file

@ -30,8 +30,10 @@ class TestIntegration < Minitest::Test
end
end
refute File.exist?(@bind_path), "Bind path must be removed after stop"
File.unlink(@bind_path) rescue nil
if @bind_path
refute File.exist?(@bind_path), "Bind path must be removed after stop"
File.unlink(@bind_path) rescue nil
end
# wait until the end for OS buffering?
if defined?(@server) && @server