about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-07-12 20:52:39 +0000
committerEric Wong <normalperson@yhbt.net>2013-07-12 21:47:48 +0000
commit249c82c4080c7adb08c32ebcd6cd74ffec5acd18 (patch)
treeb4c44363143128317128633da5608bc10400ec94
parent4244fd63ef360a1b5a201d82e323c54842f0db55 (diff)
downloadcmogstored-249c82c4080c7adb08c32ebcd6cd74ffec5acd18.tar.gz
test_head_response_time does not test anything which would
not be otherwise tested by other tests under valgrind.
This test is only needed for occasional validation of
fuckups regarding TCP_NOPUSH on FreeBSD, and not necessary
for general use.
-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")