spec/spec_helper.rb in logstash-input-unix-3.1.0 vs spec/spec_helper.rb in logstash-input-unix-3.1.1
- old
+ new
@@ -10,11 +10,11 @@
@socket = nil
@line = line
end
def new_socket(path)
- @path = path
+ @path = path
File.unlink if File.exists?(path) && File.socket?(path)
@socket = UNIXServer.new(path)
self
end
@@ -29,10 +29,9 @@
end
self
end
def close
- @thread.kill
@socket.close
File.unlink(path)
end
end