diff --git a/test/test_configurator.rb b/test/test_configurator.rb index 657e1355..e9dea363 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