summaryrefslogtreecommitdiff
path: root/test/soap/calc/test_calc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/soap/calc/test_calc.rb')
-rw-r--r--test/soap/calc/test_calc.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/soap/calc/test_calc.rb b/test/soap/calc/test_calc.rb
index 4e50617f0c..d73ade4ac3 100644
--- a/test/soap/calc/test_calc.rb
+++ b/test/soap/calc/test_calc.rb
@@ -16,7 +16,7 @@ class TestCalc < Test::Unit::TestCase
def setup
@server = CalcServer.new(self.class.name, nil, '0.0.0.0', Port)
- @server.level = Logger::Severity::FATAL
+ @server.level = Logger::Severity::ERROR
@t = Thread.new {
@server.start
}
@@ -27,7 +27,8 @@ class TestCalc < Test::Unit::TestCase
raise
end
end
- @calc = SOAP::RPC::Driver.new("http://localhost:#{Port}/", 'http://tempuri.org/calcService')
+ @endpoint = "http://localhost:#{Port}/"
+ @calc = SOAP::RPC::Driver.new(@endpoint, 'http://tempuri.org/calcService')
@calc.add_method('add', 'lhs', 'rhs')
@calc.add_method('sub', 'lhs', 'rhs')
@calc.add_method('multi', 'lhs', 'rhs')
@@ -38,6 +39,7 @@ class TestCalc < Test::Unit::TestCase
@server.server.shutdown
@t.kill
@t.join
+ @calc.reset_stream
end
def test_calc