diff options
Diffstat (limited to 'test/soap')
-rw-r--r-- | test/soap/calc/test_calc.rb | 4 | ||||
-rw-r--r-- | test/soap/calc/test_calc2.rb | 4 | ||||
-rw-r--r-- | test/soap/helloworld/test_helloworld.rb | 4 |
3 files changed, 6 insertions, 6 deletions
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 diff --git a/test/soap/helloworld/test_helloworld.rb b/test/soap/helloworld/test_helloworld.rb index 1e9c4a3966..7261e42f19 100644 --- a/test/soap/helloworld/test_helloworld.rb +++ b/test/soap/helloworld/test_helloworld.rb @@ -21,7 +21,7 @@ class TestHelloWorld < 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 @@ -34,7 +34,7 @@ class TestHelloWorld < Test::Unit::TestCase end def teardown - @server.server.shutdown + @server.shutdown @t.kill @t.join @client.reset_stream |