spec/helpers/spec_helper.rb in logstash-input-file-4.4.4 vs spec/helpers/spec_helper.rb in logstash-input-file-4.4.5

- old
+ new

@@ -22,9 +22,15 @@ f.seek(12) f.puts 'corrupting_string' f.close() end + def self.truncate_gzip(file_path) + f = File.open(file_path, "ab") + f.truncate(100) + f.close() + end + class TracerBase def initialize @tracer = Concurrent::Array.new end