about summary refs log tree commit homepage
path: root/test/http_range.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/http_range.rb')
-rw-r--r--test/http_range.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/http_range.rb b/test/http_range.rb
index fe5f0a4..7b0182d 100644
--- a/test/http_range.rb
+++ b/test/http_range.rb
@@ -5,6 +5,7 @@
 require 'test/test_helper'
 require 'net/http'
 require 'time'
+def Socket.gethostbyname(*args); raise "disabled for test"; end
 require 'webrick'
 require 'stringio'
 
@@ -32,6 +33,7 @@ class TestHTTPRange < Test::Unit::TestCase
       :DocumentRoot => @tmpdir,
       :ServerType => Thread,
       :Logger => WEBrick::Log.new(@wblogger),
+      :DoNotReverseLookup => true,
     }
     @webrick = WEBrick::HTTPServer.new(wbopts)
     @webrick.start