about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--test/http.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/http.rb b/test/http.rb
index b1fd3b3..b296ffa 100644
--- a/test/http.rb
+++ b/test/http.rb
@@ -52,6 +52,7 @@ class TestHTTP < Test::Unit::TestCase
 
   # ensure HTTP HEAD responses get pushed right away
   def test_head_response_time
+    return if ENV["VALGRIND"] # valgrind is slow and skews response times
     File.open("#@tmpdir/somefile", "wb") { |fp| fp.puts "HI\n" }
     Net::HTTP.start(@host, @port) do |http|
       req = Net::HTTP::Head.new("/somefile")