From 01264bcd36e4638f08efaaf98137ca3dc6b2bdc7 Mon Sep 17 00:00:00 2001 From: chentanjun <2799194073@qq.com> Date: Wed, 25 Sep 2019 23:43:19 +0800 Subject: [PATCH] fix-up typo Signed-off-by: chentanjun <2799194073@qq.com> --- test/plugin/out_forward/test_socket_cache.rb | 2 +- test/plugin/test_buffer_file_chunk.rb | 2 +- test/plugin/test_output_as_buffered.rb | 2 +- test/test_root_agent.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/plugin/out_forward/test_socket_cache.rb b/test/plugin/out_forward/test_socket_cache.rb index 17f2f6a5bb..48d4508c8e 100644 --- a/test/plugin/out_forward/test_socket_cache.rb +++ b/test/plugin/out_forward/test_socket_cache.rb @@ -5,7 +5,7 @@ class SocketCacheTest < Test::Unit::TestCase sub_test_case 'checkout_or' do - test 'when gived key does not exist' do + test 'when given key does not exist' do c = Fluent::Plugin::ForwardOutput::SocketCache.new(10, $log) sock = mock!.open { 'socket' }.subject assert_equal('socket', c.checkout_or('key') { sock.open }) diff --git a/test/plugin/test_buffer_file_chunk.rb b/test/plugin/test_buffer_file_chunk.rb index dba1f4ba70..663aa171b7 100644 --- a/test/plugin/test_buffer_file_chunk.rb +++ b/test/plugin/test_buffer_file_chunk.rb @@ -495,7 +495,7 @@ def gen_chunk_path(prefix, unique_id) end end - test 'ensure to remove metadata file if #write_metadata raise an error becuase of disk full' do + test 'ensure to remove metadata file if #write_metadata raise an error because of disk full' do chunk_path = File.join(@chunkdir, 'test.*.log') stub(Fluent::UniqueId).hex(anything) { 'id' } # to fix chunk id diff --git a/test/plugin/test_output_as_buffered.rb b/test/plugin/test_output_as_buffered.rb index 4d61829fb8..0b5e01ccf7 100644 --- a/test/plugin/test_output_as_buffered.rb +++ b/test/plugin/test_output_as_buffered.rb @@ -1112,7 +1112,7 @@ def waiting(seconds) assert_equal(0, @i.write_count) Timecop.freeze(Time.parse('2019-02-09 00:00:12 +0900')) - # wirte should be called in few seconds since + # write should be called in few seconds since # running interval of enque thread is timekey_wait / 11.0. waiting(5){ sleep 0.1 until @i.write_count == 1 } end diff --git a/test/test_root_agent.rb b/test/test_root_agent.rb index 73ecd601c3..6c5e2151e2 100644 --- a/test/test_root_agent.rb +++ b/test/test_root_agent.rb @@ -710,7 +710,7 @@ def configure_ra(conf_str) end end - test 'raises configuration error for worker id collisions on multi workers syntax when multi avaliable worker_ids are left' do + test 'raises configuration error for worker id collisions on multi workers syntax when multi available worker_ids are left' do errmsg = "specified worker_id<1> collisions is detected on directive. Available worker id(s): [2, 3]" assert_raise Fluent::ConfigError.new(errmsg) do conf = <<-EOC