summaryrefslogtreecommitdiff
path: root/test/soap/helloworld
diff options
context:
space:
mode:
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