Skip to content

Commit

Permalink
fix to use test driver for buffered output
Browse files Browse the repository at this point in the history
  • Loading branch information
tagomoris committed Apr 28, 2016
1 parent fd862cf commit 7604852
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/plugin/test_out_exec_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def setup
]

def create_driver(conf = CONFIG, tag = 'test')
Fluent::Test::OutputTestDriver.new(Fluent::ExecFilterOutput, tag).configure(conf)
Fluent::Test::BufferedOutputTestDriver.new(Fluent::ExecFilterOutput, tag).configure(conf)
end

def sed_unbuffered_support?
Expand All @@ -38,6 +38,8 @@ def sed_unbuffered_option
def test_configure
d = create_driver

assert d.instance.instance_eval{ @overrides_format_stream }

assert_equal ["time_in","tag","k1"], d.instance.in_keys
assert_equal ["time_out","tag","k2"], d.instance.out_keys
assert_equal "tag", d.instance.out_tag_key
Expand Down

0 comments on commit 7604852

Please sign in to comment.