when a reload fails there should be at least one failure count

Fixes #5923
This commit is contained in:
Joao Duarte 2016-09-15 12:33:51 +01:00 committed by Suyog Rao
parent f82a64fdb3
commit 88d8a46360

View file

@ -501,7 +501,7 @@ describe LogStash::Agent do
it "increases the failed reload count" do
snapshot = subject.metric.collector.snapshot_metric
value = snapshot.metric_store.get_with_path("/stats/pipelines")[:stats][:pipelines][:main][:reloads][:failures].value
expect(value).to be > 1
expect(value).to be > 0
end
end
end