summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-27 07:03:29 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-27 07:03:29 +0000
commit5334d202530d25c5ff18be092b19be0d0261882a (patch)
treefe2fa61702c537812d58f103f9d353ebef51d6c7 /test
parent4a17e78ebe2c5c2b4c95d101d9f7d5bccce8fe06 (diff)
downloadruby-5334d202530d25c5ff18be092b19be0d0261882a.tar.gz
ruby-5334d202530d25c5ff18be092b19be0d0261882a.tar.xz
ruby-5334d202530d25c5ff18be092b19be0d0261882a.zip
* lib/soap/rpc/cgistub.rb: make logging severity threshold higher.
* lib/soap/rpc/standaloneServer.rb: defer WEBrick server start to give a change to reset logging severity threshold. * test/soap/calc/test_*, test/soap/helloworld/test_helloworld.rb: run silent. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/soap/calc/test_calc.rb3
-rw-r--r--test/soap/calc/test_calc2.rb3
-rw-r--r--test/soap/calc/test_calc_cgi.rb5
-rw-r--r--test/soap/helloworld/hw_s.rb1
-rw-r--r--test/soap/helloworld/test_helloworld.rb3
5 files changed, 11 insertions, 4 deletions
diff --git a/test/soap/calc/test_calc.rb b/test/soap/calc/test_calc.rb
index e14dbf5da..528b3e2d4 100644
--- a/test/soap/calc/test_calc.rb
+++ b/test/soap/calc/test_calc.rb
@@ -14,10 +14,11 @@ module Calc
class TestCalc < Test::Unit::TestCase
def setup
@server = CalcServer.new(self.class.name, nil, '0.0.0.0', 7000)
+ @server.level = Logger::Severity::FATAL
@t = Thread.new {
@server.start
}
- while @server.server.status != :Running
+ while @server.server.nil? or @server.server.status != :Running
sleep 0.1
end
@calc = SOAP::RPC::Driver.new('http://localhost:7000/', 'http://tempuri.org/calcService')
diff --git a/test/soap/calc/test_calc2.rb b/test/soap/calc/test_calc2.rb
index 0e84ca390..776151ff3 100644
--- a/test/soap/calc/test_calc2.rb
+++ b/test/soap/calc/test_calc2.rb
@@ -14,10 +14,11 @@ module Calc
class TestCalc2 < Test::Unit::TestCase
def setup
@server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 7000)
+ @server.level = Logger::Severity::FATAL
@t = Thread.new {
@server.start
}
- while @server.server.status != :Running
+ while @server.server.nil? or @server.server.status != :Running
sleep 0.1
end
@var = SOAP::RPC::Driver.new('http://localhost:7000/', 'http://tempuri.org/calcService')
diff --git a/test/soap/calc/test_calc_cgi.rb b/test/soap/calc/test_calc_cgi.rb
index 6c89d46c1..6d1204d48 100644
--- a/test/soap/calc/test_calc_cgi.rb
+++ b/test/soap/calc/test_calc_cgi.rb
@@ -1,5 +1,6 @@
require 'test/unit'
require 'soap/rpc/driver'
+require 'logger'
require 'webrick'
@@ -9,9 +10,13 @@ module Calc
class TestCalcCGI < Test::Unit::TestCase
def setup
+ logger = Logger.new(STDERR)
+ logger.level = Logger::Severity::FATAL
@server = WEBrick::HTTPServer.new(
:BindAddress => "0.0.0.0",
+ :Logger => logger,
:Port => 8808,
+ :AccessLog => [],
:DocumentRoot => File.dirname(File.expand_path(__FILE__)),
:CGIPathEnv => ENV['PATH']
)
diff --git a/test/soap/helloworld/hw_s.rb b/test/soap/helloworld/hw_s.rb
index b917f72fc..970c76a1b 100644
--- a/test/soap/helloworld/hw_s.rb
+++ b/test/soap/helloworld/hw_s.rb
@@ -2,7 +2,6 @@ require 'soap/rpc/standaloneServer'
class HelloWorldServer < SOAP::RPC::StandaloneServer
def on_init
- @log.level = Logger::Severity::DEBUG
add_method(self, 'hello_world', 'from')
end
diff --git a/test/soap/helloworld/test_helloworld.rb b/test/soap/helloworld/test_helloworld.rb
index 0aa552e4a..3f12bf4a2 100644
--- a/test/soap/helloworld/test_helloworld.rb
+++ b/test/soap/helloworld/test_helloworld.rb
@@ -14,10 +14,11 @@ module HelloWorld
class TestHelloWorld < Test::Unit::TestCase
def setup
@server = HelloWorldServer.new('hws', 'urn:hws', '0.0.0.0', 2000)
+ @server.level = Logger::Severity::UNKNOWN
@t = Thread.new {
@server.start
}
- while @server.server.status != :Running
+ while @server.server.nil? or @server.server.status != :Running
sleep 0.1
end
@client = SOAP::RPC::Driver.new('http://localhost:2000/', 'urn:hws')