From 249c82c4080c7adb08c32ebcd6cd74ffec5acd18 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 12 Jul 2013 20:52:39 +0000 Subject: test/http: disable time-dependent test under valgrind 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. --- test/http.rb | 1 + 1 file changed, 1 insertion(+) 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") -- cgit v1.2.3-24-ge0c7