Skip to content

Commit

Permalink
test_socket_cache: Add missing Timecop.return
Browse files Browse the repository at this point in the history
Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed May 24, 2022
1 parent 0a1939d commit e58607d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/plugin/out_forward/test_socket_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ class SocketCacheTest < Test::Unit::TestCase
end

sub_test_case 'purge_obsolete_socks' do
def teardown
Timecop.return
end

test 'delete key in inactive_socks' do
c = Fluent::Plugin::ForwardOutput::SocketCache.new(10, $log)
sock = mock!.close { 'closed' }.subject
Expand Down

0 comments on commit e58607d

Please sign in to comment.