about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-09 23:50:00 +0000
committerEric Wong <normalperson@yhbt.net>2010-06-10 02:54:25 +0000
commit107f33b2205829c0ef07216255b4ec0e9b8f6730 (patch)
tree65725f218810afb33627e13abff9e23494e647f3 /test
parent56519d744eea72ace7c325d37b493ab9217ef44f (diff)
downloadunicorn-107f33b2205829c0ef07216255b4ec0e9b8f6730.tar.gz
It's a good idea to use a caching http_proxy to save bandwidth
when isolating gems for different Ruby versions.
Diffstat (limited to 'test')
-rw-r--r--test/test_helper.rb3
1 files changed, 3 insertions, 0 deletions
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