mirror of
https://github.com/elastic/logstash.git
synced 2025-06-28 09:46:03 -04:00
parent
b41407c99b
commit
183ab07ec0
2 changed files with 8 additions and 4 deletions
|
@ -12,6 +12,10 @@ describe "Test Monitoring API" do
|
|||
@fixture.teardown
|
||||
}
|
||||
|
||||
after(:each) {
|
||||
@fixture.get_service("logstash").teardown
|
||||
}
|
||||
|
||||
let(:number_of_events) { 5 }
|
||||
let(:max_retry) { 120 }
|
||||
|
||||
|
@ -19,7 +23,7 @@ describe "Test Monitoring API" do
|
|||
logstash_service = @fixture.get_service("logstash")
|
||||
logstash_service.start_with_stdin
|
||||
number_of_events.times { logstash_service.write_to_stdin("Hello world") }
|
||||
|
||||
|
||||
begin
|
||||
sleep(1) while (result = logstash_service.monitoring_api.event_stats).nil?
|
||||
rescue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue