Skip to content

Commit

Permalink
Merge pull request #3899 from nicklas-dohrn/patch-1
Browse files Browse the repository at this point in the history
Add method for testing filtered_with_time
  • Loading branch information
ashie authored Nov 23, 2022
2 parents 79eb77a + 899a0ca commit 981decb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fluent/test/driver/filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def filtered_records
@filtered.map {|_time, record| record }
end

def filtered_time
@filtered.map {|time, _record| time }
end

def instance_hook_after_started
super
filter_hook = ->(time, record) { @filtered << [time, record] }
Expand Down

0 comments on commit 981decb

Please sign in to comment.