From 107f33b2205829c0ef07216255b4ec0e9b8f6730 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 9 Jun 2010 23:50:00 +0000 Subject: tests: set NO_PROXY when running tests It's a good idea to use a caching http_proxy to save bandwidth when isolating gems for different Ruby versions. --- test/test_helper.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/test_helper.rb b/test/test_helper.rb index 5b750ee..f0da9c1 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -8,6 +8,9 @@ STDIN.sync = STDOUT.sync = STDERR.sync = true # buffering makes debugging hard +# FIXME: move curl-dependent tests into t/ +ENV['NO_PROXY'] ||= ENV['UNICORN_TEST_ADDR'] || '127.0.0.1' + # Some tests watch a log file or a pid file to spring up to check state # Can't rely on inotify on non-Linux and logging to a pipe makes things # more complicated -- cgit v1.2.3-24-ge0c7