spec/inputs/s3_spec.rb in logstash-input-s3-3.8.2 vs spec/inputs/s3_spec.rb in logstash-input-s3-3.8.3
- old
+ new
@@ -327,9 +327,10 @@
it 'should process events' do
events = fetch_events(config)
expect(events.size).to eq(events_to_process)
expect(events[0].get("[@metadata][s3][key]")).to eql log.key
+ expect(events[1].get("[@metadata][s3][key]")).to eql log.key
end
it "deletes the temporary file" do
events = fetch_events(config)
expect(Dir.glob(File.join(temporary_directory, "*")).size).to eq(0)