mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Add test for ordered pipeline flushing fix
This commit is contained in:
parent
713fbfbf14
commit
ad631e464e
1 changed files with 39 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue