prevent tests from stalling by ensuring files we check get flushed

Fixes #9795
This commit is contained in:
Ry Biesemeyer 2018-06-26 17:11:25 +00:00
parent fb306a14e3
commit d6b9d0f398
2 changed files with 5 additions and 2 deletions

View file

@ -10,6 +10,9 @@ config: |-
generator { count => 5 }
}
output {
file { path => '<%=options[:random_file]%>' }
file {
path => '<%=options[:random_file]%>'
flush_interval => 0
}
}

View file

@ -69,7 +69,7 @@ describe "Test Logstash service when multiple pipelines are used" do
"pipeline.id" => "test2",
"pipeline.workers" => 1,
"pipeline.batch.size" => 1,
"config.string" => "input { pipeline { address => testaddr } } output { file { path => \"#{temporary_out_file_1}\" } }"
"config.string" => "input { pipeline { address => testaddr } } output { file { path => \"#{temporary_out_file_1}\" flush_interval => 0} }"
}
]
end