Add test for ordered pipeline flushing fix

This commit is contained in:
Rob Bavey 2020-08-20 17:14:24 -04:00 committed by Colin Surprenant
parent 713fbfbf14
commit ad631e464e

View file

@ -776,6 +776,7 @@ describe LogStash::JavaPipeline do
end
context "Periodic Flush" do
shared_examples 'it flushes correctly' do
let(:config) do
<<-EOS
input {
@ -816,8 +817,19 @@ describe LogStash::JavaPipeline do
pipeline.shutdown
end
end
it_behaves_like 'it flushes correctly'
context 'with pipeline ordered' do
before do
pipeline_settings_obj.set("pipeline.workers", 1)
pipeline_settings_obj.set("pipeline.ordered", true)
end
it_behaves_like 'it flushes correctly'
end
end
context "Periodic Flush that intermittently returns nil" do
let(:config) do
<<-EOS