about summary refs log tree commit homepage
path: root/test/test_reopen_logs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_reopen_logs.rb')
-rw-r--r--test/test_reopen_logs.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/test_reopen_logs.rb b/test/test_reopen_logs.rb
index 4ca6e66..8acac6b 100644
--- a/test/test_reopen_logs.rb
+++ b/test/test_reopen_logs.rb
@@ -32,10 +32,7 @@ class TestReopenLogs < Testcase
       end
       worker_processes 1 if worker
     end
-    pid = fork do
-      ENV["YAHNS_FD"] = @srv.fileno.to_s
-      Yahns::Server.new(cfg).start.join
-    end
+    pid = mkserver(cfg)
     Net::HTTP.start(host, port) do |http|
       res = http.request(Net::HTTP::Get.new("/aaa"))
       assert_equal 200, res.code.to_i