From af2dc0030084bc68355ea4ff2d599be311480249 Mon Sep 17 00:00:00 2001 From: nahi Date: Mon, 8 Dec 2003 15:09:49 +0000 Subject: * lib/soap/rpc/standaloneServer.rb: add 'shutdown' and 'status' methods as delegates to WEBrick. * test/soap/calc/{test_calc.rb,test_calc2.rb}, test/soap/helloworld/test_helloworld.rb, test/wsdl/datetime/test_datetime.rb, test/wsdl/raa/test_raa.rb: follow the change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/soap/calc/test_calc.rb | 4 ++-- test/soap/calc/test_calc2.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test/soap/calc') diff --git a/test/soap/calc/test_calc.rb b/test/soap/calc/test_calc.rb index d73ade4ac3..c917ddcf9e 100644 --- a/test/soap/calc/test_calc.rb +++ b/test/soap/calc/test_calc.rb @@ -20,7 +20,7 @@ class TestCalc < Test::Unit::TestCase @t = Thread.new { @server.start } - while @server.server.nil? or @server.server.status != :Running + while @server.status != :Running sleep 0.1 unless @t.alive? @t.join @@ -36,7 +36,7 @@ class TestCalc < Test::Unit::TestCase end def teardown - @server.server.shutdown + @server.shutdown @t.kill @t.join @calc.reset_stream diff --git a/test/soap/calc/test_calc2.rb b/test/soap/calc/test_calc2.rb index 1f18a5f222..b7fee71526 100644 --- a/test/soap/calc/test_calc2.rb +++ b/test/soap/calc/test_calc2.rb @@ -21,7 +21,7 @@ class TestCalc2 < Test::Unit::TestCase Thread.current.abort_on_exception = true @server.start } - while @server.server.nil? or @server.server.status != :Running + while @server.status != :Running sleep 0.1 unless @t.alive? @t.join @@ -39,7 +39,7 @@ class TestCalc2 < Test::Unit::TestCase end def teardown - @server.server.shutdown + @server.shutdown @t.kill @t.join @var.reset_stream -- cgit v1.2.3