test fix: use single worker in test to avoid concurrency issue in sleep filter

See: https://github.com/elastic/logstash/issues/8073
See: https://github.com/logstash-plugins/logstash-filter-sleep/issues/7

Fixes: #8974

Fixes #8975
This commit is contained in:
Jake Landis 2018-01-17 11:37:06 -06:00
parent d89536eb8e
commit 5a725bf671

View file

@ -36,7 +36,7 @@ describe "Test Logstash Slowlog" do
"slowlog.threshold.warn" => "500ms"
}
IO.write(@ls.application_settings_file, settings.to_yaml)
@ls.spawn_logstash("-e", config)
@ls.spawn_logstash("-w", "1" , "-e", config)
@ls.wait_for_logstash
sleep 2 until @ls.exited?
slowlog_file = "#{temp_dir}/logstash-slowlog-plain.log"