mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
df8b1ad9e8
commit
cf73166d47
8 changed files with 24 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue