about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-16 04:28:13 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-16 04:28:13 +0000
commit7a8e36a8ca1febe6b798c78923ac632b543d086f (patch)
tree3dff7c0594b634fb970b3ed8e83f802bc1a5c80d /test
parent72caf1dd08dd7bb559a51b7cba28c43c8fccfdd2 (diff)
downloadunicorn-7a8e36a8ca1febe6b798c78923ac632b543d086f.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@184 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'test')
-rw-r--r--test/test_configurator.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_configurator.rb b/test/test_configurator.rb
index 657e135..e9dea36 100644
--- a/test/test_configurator.rb
+++ b/test/test_configurator.rb
@@ -25,7 +25,7 @@ class ConfiguratorTest < Test::Unit::TestCase
 
   def test_base_handler_config
     config = Mongrel::Configurator.new :host => "localhost" do
-      listener :port => 3111 do
+      listener :port => 4501 do
         # 2 in front should run, but the sentinel shouldn't since dirhandler processes the request
         uri "/", :handler => plugin("/handlers/testplugin")
         uri "/", :handler => plugin("/handlers/testplugin")
@@ -48,19 +48,19 @@ class ConfiguratorTest < Test::Unit::TestCase
       assert listener.classifier.uris.include?("/test"), "/test not registered"
     end
 
-    res = Net::HTTP.get(URI.parse('http://localhost:3111/test'))
+    res = Net::HTTP.get(URI.parse('http://localhost:4501/test'))
     assert res != nil, "Didn't get a response"
     assert $test_plugin_fired == 3, "Test filter plugin didn't run 3 times."
 
 
-    res = Net::HTTP.get(URI.parse('http://localhost:3111/'))
+    res = Net::HTTP.get(URI.parse('http://localhost:4501/'))
     assert res != nil, "Didn't get a response"
     assert $test_plugin_fired == 6, "Test filter plugin didn't run 6 times."
 
     config.stop
     
     assert_raise Errno::EBADF, Errno::ECONNREFUSED do
-      res = Net::HTTP.get(URI.parse("http://localhost:3111/"))
+      res = Net::HTTP.get(URI.parse("http://localhost:4501/"))
     end
   end