From fd8d86f48b6730a94daa2dfbef88b331233b7676 Mon Sep 17 00:00:00 2001 From: TAGOMORI Satoshi Date: Tue, 1 Nov 2016 19:50:18 +0900 Subject: [PATCH] remove test for unsupported async write --- test/plugin/test_out_stdout.rb | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/test/plugin/test_out_stdout.rb b/test/plugin/test_out_stdout.rb index 909244d16d..cbb028bcdc 100644 --- a/test/plugin/test_out_stdout.rb +++ b/test/plugin/test_out_stdout.rb @@ -139,21 +139,6 @@ def create_driver(conf = CONFIG) end assert_equal "#{Time.at(time).localtime.strftime(TIME_FORMAT)} test: {\"test\":\"test\"}\n", out end - - data('oj' => 'oj', 'yajl' => 'yajl') - test '#try_write(asynchronous)' do |data| - d = create_driver(config_element("ROOT", "", {"output_type" => "json", "json_parser" => data}, [config_element("buffer")])) - time = event_time() - d.instance.delayed = true - - out = capture_log do - d.run(default_tag: 'test', flush: true, shutdown: false) do - d.feed(time, {'test' => 'test'}) - end - end - - assert_equal "#{Time.at(time).localtime.strftime(TIME_FORMAT)} test: {\"test\":\"test\"}\n", out - end end sub_test_case 'emit hash' do @@ -169,20 +154,6 @@ def create_driver(conf = CONFIG) assert_equal "#{Time.at(time).localtime.strftime(TIME_FORMAT)} test: {\"test\"=>\"test\"}\n", out end - - test '#try_write(asynchronous)' do - d = create_driver(config_element("ROOT", "", {"output_type" => "hash"}, [config_element("buffer")])) - time = event_time() - d.instance.delayed = true - - out = capture_log do - d.run(default_tag: 'test', flush: true, shutdown: false) do - d.feed(time, {'test' => 'test'}) - end - end - - assert_equal "#{Time.at(time).localtime.strftime(TIME_FORMAT)} test: {\"test\"=>\"test\"}\n", out - end end end