summaryrefslogtreecommitdiff
path: root/test/soap/calc/test_calc_cgi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/soap/calc/test_calc_cgi.rb')
-rw-r--r--test/soap/calc/test_calc_cgi.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/soap/calc/test_calc_cgi.rb b/test/soap/calc/test_calc_cgi.rb
index 6e7bae8d20..0ed5849283 100644
--- a/test/soap/calc/test_calc_cgi.rb
+++ b/test/soap/calc/test_calc_cgi.rb
@@ -16,13 +16,15 @@ class TestCalcCGI < Test::Unit::TestCase
Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"]
)
+ Port = 17171
+
def setup
logger = Logger.new(STDERR)
logger.level = Logger::Severity::FATAL
@server = WEBrick::HTTPServer.new(
:BindAddress => "0.0.0.0",
:Logger => logger,
- :Port => 8808,
+ :Port => Port,
:AccessLog => [],
:DocumentRoot => File.dirname(File.expand_path(__FILE__)),
:CGIPathEnv => ENV['PATH'],
@@ -34,7 +36,7 @@ class TestCalcCGI < Test::Unit::TestCase
while @server.status != :Running
sleep 0.1
end
- @calc = SOAP::RPC::Driver.new('http://localhost:8808/server.cgi', 'http://tempuri.org/calcService')
+ @calc = SOAP::RPC::Driver.new("http://localhost:#{Port}/server.cgi", 'http://tempuri.org/calcService')
@calc.add_method('add', 'lhs', 'rhs')
@calc.add_method('sub', 'lhs', 'rhs')
@calc.add_method('multi', 'lhs', 'rhs')