about summary refs log tree commit homepage
path: root/test/test_configurator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_configurator.rb')
-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