From bd07779cbd3710dae23289c68b4d2e5004940201 Mon Sep 17 00:00:00 2001 From: abetomo Date: Thu, 9 Feb 2023 23:53:09 +0900 Subject: [PATCH] modify variable to be checked @socket_manager_server -> @socket_manager_path Signed-off-by: abetomo --- lib/fluent/test/driver/base.rb | 2 +- test/plugin_helper/test_server.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fluent/test/driver/base.rb b/lib/fluent/test/driver/base.rb index dfd56ac1a9..b53f863db4 100644 --- a/lib/fluent/test/driver/base.rb +++ b/lib/fluent/test/driver/base.rb @@ -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 diff --git a/test/plugin_helper/test_server.rb b/test/plugin_helper/test_server.rb index 3dc308474b..a08734ae46 100644 --- a/test/plugin_helper/test_server.rb +++ b/test/plugin_helper/test_server.rb @@ -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