From 76048524aab9fcb86cf2479caa2215cb41bb52ba Mon Sep 17 00:00:00 2001 From: TAGOMORI Satoshi Date: Wed, 27 Apr 2016 22:32:22 +0900 Subject: [PATCH] fix to use test driver for buffered output --- test/plugin/test_out_exec_filter.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/plugin/test_out_exec_filter.rb b/test/plugin/test_out_exec_filter.rb index f28bb5b2f3..c23634768f 100644 --- a/test/plugin/test_out_exec_filter.rb +++ b/test/plugin/test_out_exec_filter.rb @@ -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? @@ -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