diff options
author | Eric Wong <e@80x24.org> | 2013-10-30 02:13:33 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-30 07:01:24 +0000 |
commit | b4e8651a50733f256c065e576c2d9198c3911532 (patch) | |
tree | 56955277c65e801573dfb3978a47dcc56887e13b /test/test_server.rb | |
parent | f2f1687a63e594cb7929552e8a4501f227dba778 (diff) | |
download | yahns-b4e8651a50733f256c065e576c2d9198c3911532.tar.gz |
We need to account for the directory change since yahns may lazily require some files. GTL is also not needed inside a child process.
Diffstat (limited to 'test/test_server.rb')
-rw-r--r-- | test/test_server.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |