about summary refs log tree commit homepage
path: root/test/unit/test_redirect_handler.rb
diff options
context:
space:
mode:
authorluislavena <luislavena@19e92222-5c0b-0410-8929-a290d50e31e9>2008-03-31 08:19:11 +0000
committerluislavena <luislavena@19e92222-5c0b-0410-8929-a290d50e31e9>2008-03-31 08:19:11 +0000
commiteda1ea00904dcf4b4e7ed533b327a842713ac11a (patch)
treebf6e839153592c22c2c2f9b4745b823c0b3db1f0 /test/unit/test_redirect_handler.rb
parent18e93c034db0c08bcc5b5f7a72a8fb6e909c009c (diff)
downloadunicorn-eda1ea00904dcf4b4e7ed533b327a842713ac11a.tar.gz
CI tools.
Use of #process_based_port as port number.
Exclude DirHandler(nil) with absolute paths on Windows.


git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/branches/stable_1-2@999 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'test/unit/test_redirect_handler.rb')
-rw-r--r--test/unit/test_redirect_handler.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/test_redirect_handler.rb b/test/unit/test_redirect_handler.rb
index 3207b46..e990427 100644
--- a/test/unit/test_redirect_handler.rb
+++ b/test/unit/test_redirect_handler.rb
@@ -9,11 +9,12 @@ require 'test/test_helper'
 class RedirectHandlerTest < Test::Unit::TestCase
 
   def setup
+    @port = process_based_port
     redirect_test_io do
-      @server = Mongrel::HttpServer.new('127.0.0.1', 9998)
+      @server = Mongrel::HttpServer.new('127.0.0.1', @port)
     end
     @server.run
-    @client = Net::HTTP.new('127.0.0.1', 9998)
+    @client = Net::HTTP.new('127.0.0.1', @port)
   end
 
   def teardown