diff --git a/spec/filters/date_performance.rb b/spec/filters/date_performance.rb index 1444bd966..ce2ae1061 100644 --- a/spec/filters/date_performance.rb +++ b/spec/filters/date_performance.rb @@ -21,15 +21,17 @@ describe LogStash::Filters::Date do } filter { date { - mydate => "MMM dd HH:mm:ss Z" + match => [ "mydate", "MMM dd HH:mm:ss Z" ] } } output { null { } } CONFIG - agent do - puts "date parse rate: #{event_count / @duration}" - insist { @duration } < max_duration + 2.times do + agent do + puts "date parse rate: #{event_count / @duration}" + insist { @duration } < max_duration + end end end end