Skip to content

Commit

Permalink
modify variable to be checked
Browse files Browse the repository at this point in the history
@socket_manager_server ->
@socket_manager_path

Signed-off-by: abetomo <[email protected]>
  • Loading branch information
abetomo committed Feb 9, 2023
1 parent a5bf404 commit bd07779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fluent/test/driver/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def instance_shutdown(log: Logger.new($stdout))

if @socket_manager_server
@socket_manager_server.close
if @socket_manager_server.is_a?(String) && File.exist?(@socket_manager_path)
if @socket_manager_path.is_a?(String) && File.exist?(@socket_manager_path)
FileUtils.rm_f @socket_manager_path
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/plugin_helper/test_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Dummy < Fluent::Plugin::TestBase
(@d.terminated? || @d.terminate) rescue nil

@socket_manager_server.close
if @socket_manager_server.is_a?(String) && File.exist?(@socket_manager_path)
if @socket_manager_path.is_a?(String) && File.exist?(@socket_manager_path)
FileUtils.rm_f @socket_manager_path
end
end
Expand Down

0 comments on commit bd07779

Please sign in to comment.