spec/helpers/spec_helper.rb in logstash-input-file-4.1.16 vs spec/helpers/spec_helper.rb in logstash-input-file-4.1.17

- old
+ new

@@ -14,9 +14,16 @@ def self.make_fixture_current(path, time = Time.now) ::File.utime(time, time, path) end + def self.corrupt_gzip(file_path) + f = File.open(file_path, "w") + f.seek(12) + f.puts 'corrupting_string' + f.close() + end + class TracerBase def initialize @tracer = Concurrent::Array.new end