Project

General

Profile

« Previous | Next » 

Revision 8a481e8d

Added by Dmitri Dolguikh about 6 years ago

Fixes #23666 - reduced length of systemd test socket path

View differences:

test/sd_notify_test.rb
end
def with_test_socket(&block)
socket_path = File.expand_path('../tmp/test_systemd.socket', __FILE__)
socket_path = File.expand_path('../tmp/systemd.socket', __FILE__)
File.delete(socket_path) if File.exist?(socket_path)
socket = Socket.new(Socket::AF_UNIX, Socket::SOCK_DGRAM, 0)

Also available in: Unified diff