From 5d5377e094745ee76cd066d2244c52b40647d1cc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 26 Oct 2013 01:58:34 +0000 Subject: tests: increase mkserver use to reduce LoC This reduces the amount of code we have in our tests to improve maintainability. --- test/test_reopen_logs.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/test_reopen_logs.rb') 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 -- cgit v1.2.3-24-ge0c7