mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
149684d5b6
commit
328b83815c
1 changed files with 3 additions and 2 deletions
|
@ -113,12 +113,13 @@ describe LogStash::Inputs::Metrics do
|
|||
end
|
||||
|
||||
it 'should add a stats events to the queue' do
|
||||
wait(60).for { stats_events.size }.to eq(1)
|
||||
wait(60).for { stats_events.size }.to be >= 1
|
||||
end
|
||||
|
||||
it 'should add two state events to the queue' do
|
||||
# Triggered event plus the one from `update`
|
||||
wait(60).for { state_events.size }.to eq(2)
|
||||
# and possibly more from our metric_input's timer task
|
||||
wait(60).for { state_events.size }.to be >= 2
|
||||
end
|
||||
|
||||
describe "state event" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue