From cf73166d47bee1156a5231844473fb5f677bb29a Mon Sep 17 00:00:00 2001 From: nahi Date: Sat, 18 Oct 2003 15:21:18 +0000 Subject: * test/soap/calc/*, test/soap/helloworkd/*: changed port# of test server. (17171) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/soap/helloworld/hw_s.rb | 2 +- test/soap/helloworld/test_helloworld.rb | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'test/soap/helloworld') diff --git a/test/soap/helloworld/hw_s.rb b/test/soap/helloworld/hw_s.rb index 970c76a1bd..1a54adb924 100644 --- a/test/soap/helloworld/hw_s.rb +++ b/test/soap/helloworld/hw_s.rb @@ -11,6 +11,6 @@ class HelloWorldServer < SOAP::RPC::StandaloneServer end if $0 == __FILE__ - server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 2000) + server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 17171) server.start end diff --git a/test/soap/helloworld/test_helloworld.rb b/test/soap/helloworld/test_helloworld.rb index 3f12bf4a20..2819f86b45 100644 --- a/test/soap/helloworld/test_helloworld.rb +++ b/test/soap/helloworld/test_helloworld.rb @@ -12,8 +12,10 @@ module HelloWorld class TestHelloWorld < Test::Unit::TestCase + Port = 17171 + def setup - @server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 2000) + @server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', Port) @server.level = Logger::Severity::UNKNOWN @t = Thread.new { @server.start @@ -21,7 +23,7 @@ class TestHelloWorld < Test::Unit::TestCase while @server.server.nil? or @server.server.status != :Running sleep 0.1 end - @client = SOAP::RPC::Driver.new('http://localhost:2000/', 'urn:hws') + @client = SOAP::RPC::Driver.new("http://localhost:#{Port}/", 'urn:hws') @client.add_method("hello_world", "from") end -- cgit v1.2.3