Skip to content

Commit

Permalink
fix-up typo
Browse files Browse the repository at this point in the history
Signed-off-by: chentanjun <2799194073@qq.com>
  • Loading branch information
tanjunchen committed Sep 25, 2019
1 parent 5f2974a commit 01264bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/plugin/out_forward/test_socket_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
2 changes: 1 addition & 1 deletion test/plugin/test_buffer_file_chunk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/plugin/test_output_as_buffered.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/test_root_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 <worker> directive. Available worker id(s): [2, 3]"
assert_raise Fluent::ConfigError.new(errmsg) do
conf = <<-EOC
Expand Down

0 comments on commit 01264bc

Please sign in to comment.