shutdown after spec

Fixes #6236
This commit is contained in:
Suyog Rao 2016-11-10 18:18:31 -08:00
parent b41407c99b
commit 183ab07ec0
2 changed files with 8 additions and 4 deletions

View file

@ -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