diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-07-12 20:52:39 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-07-12 21:47:48 +0000 |
commit | 249c82c4080c7adb08c32ebcd6cd74ffec5acd18 (patch) | |
tree | b4c44363143128317128633da5608bc10400ec94 | |
parent | 4244fd63ef360a1b5a201d82e323c54842f0db55 (diff) | |
download | cmogstored-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.rb | 1 |
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") |