summaryrefslogtreecommitdiff
path: root/test/soap/helloworld
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-18 15:21:18 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-18 15:21:18 +0000
commitcf73166d47bee1156a5231844473fb5f677bb29a (patch)
tree254980ac7f205695e18f886a7fd4d047bff50d87 /test/soap/helloworld
parentdf8b1ad9e8c15b4a25cd4b90292c5e4004794af0 (diff)
* 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
Diffstat (limited to 'test/soap/helloworld')
-rw-r--r--test/soap/helloworld/hw_s.rb2
-rw-r--r--test/soap/helloworld/test_helloworld.rb6
2 files changed, 5 insertions, 3 deletions
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