From b4e8651a50733f256c065e576c2d9198c3911532 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 Oct 2013 02:13:33 +0000 Subject: test_server: improve working_directory test robustness We need to account for the directory change since yahns may lazily require some files. GTL is also not needed inside a child process. --- test/test_server.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test_server.rb') diff --git a/test/test_server.rb b/test/test_server.rb index 47c6bd5..da57f8c 100644 --- a/test/test_server.rb +++ b/test/test_server.rb @@ -568,9 +568,10 @@ class TestServer < Testcase Dir.mktmpdir do |tmpdir| begin pid = mkserver(cfg) do + $LOAD_PATH << File.expand_path("lib") cfg.instance_eval do working_directory tmpdir - GTL.synchronize { app(:rack, ru) { listen "#{host}:#{port}" } } + app(:rack, ru) { listen "#{host}:#{port}" } stderr_path err.path end end -- cgit v1.2.3-24-ge0c7