about summary refs log tree commit homepage
path: root/test/test_expect_100.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-10-26 01:58:34 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-26 02:00:17 +0000
commit5d5377e094745ee76cd066d2244c52b40647d1cc (patch)
tree128abda8eeb7f096f57d6596e5622cfb9aadda46 /test/test_expect_100.rb
parent14b21f7a162c6f4e76d00d6d08fa9a09524997ae (diff)
downloadyahns-5d5377e094745ee76cd066d2244c52b40647d1cc.tar.gz
This reduces the amount of code we have in our tests to
improve maintainability.
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