diff options
Diffstat (limited to 'test/soap/calc/test_calc2.rb')
-rw-r--r-- | test/soap/calc/test_calc2.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/soap/calc/test_calc2.rb b/test/soap/calc/test_calc2.rb index 776151ff35..25e686b244 100644 --- a/test/soap/calc/test_calc2.rb +++ b/test/soap/calc/test_calc2.rb @@ -12,8 +12,10 @@ module Calc class TestCalc2 < Test::Unit::TestCase + Port = 17171 + def setup - @server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 7000) + @server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', Port) @server.level = Logger::Severity::FATAL @t = Thread.new { @server.start @@ -21,7 +23,7 @@ class TestCalc2 < Test::Unit::TestCase while @server.server.nil? or @server.server.status != :Running sleep 0.1 end - @var = SOAP::RPC::Driver.new('http://localhost:7000/', 'http://tempuri.org/calcService') + @var = SOAP::RPC::Driver.new("http://localhost:#{Port}/", 'http://tempuri.org/calcService') @var.add_method('set', 'newValue') @var.add_method('get') @var.add_method_as('+', 'add', 'rhs') |