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_expect_100.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/test_expect_100.rb') 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 -- cgit v1.2.3-24-ge0c7