about summary refs log tree commit homepage
path: root/test/test_expect_100.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_expect_100.rb')
-rw-r--r--test/test_expect_100.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_expect_100.rb b/test/test_expect_100.rb
index 4c19493..868fe3a 100644
--- a/test/test_expect_100.rb
+++ b/test/test_expect_100.rb
@@ -154,12 +154,10 @@ class TestExpect100 < Testcase
         }
       }
     end
-    pid = fork do
-      ENV["YAHNS_FD"] = @srv.fileno.to_s
+    pid = mkserver(cfg) do
       $_tw_blocked = 0
       $_tw_block_on = block_on
       Yahns::HttpClient.__send__(:include, TrywriteBlocked)
-      Yahns::Server.new(cfg).start.join
     end
     c = get_tcp_client(host, port)
     if body.size > 0