diff options
author | Eric Wong <e@80x24.org> | 2015-06-09 20:22:18 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-06-10 09:20:27 +0000 |
commit | 8e5d64502e478c7e93d7168628d97f66417fcabe (patch) | |
tree | c2def47f07a46872699cd9c5873b3c4a9a6c57e8 /test/test_proxy_pass.rb | |
parent | d32e639902e3df217229017a3374b5b751ede6e3 (diff) | |
download | yahns-8e5d64502e478c7e93d7168628d97f66417fcabe.tar.gz |
We don't require kcar to be installed since most users will never use the proxy_pass feature, but show an informative error in case they want to test this functionality.
Diffstat (limited to 'test/test_proxy_pass.rb')
-rw-r--r-- | test/test_proxy_pass.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_proxy_pass.rb b/test/test_proxy_pass.rb index a27a45e..7f752e3 100644 --- a/test/test_proxy_pass.rb +++ b/test/test_proxy_pass.rb @@ -3,6 +3,10 @@ require_relative 'server_helper' require 'json' require 'digest' +begin + require 'kcar' +rescue LoadError +end class TestProxyPass < Testcase ENV["N"].to_i > 1 and parallelize_me! @@ -163,6 +167,7 @@ class TestProxyPass < Testcase def setup @srv2 = TCPServer.new(ENV["TEST_HOST"] || "127.0.0.1", 0) server_helper_setup + skip "kcar missing yahns/proxy_pass" unless defined?(Kcar) end def teardown |