test/soap/struct/test_struct.rb in soap4r-1.5.7 vs test/soap/struct/test_struct.rb in soap4r-1.5.8
- old
+ new
@@ -44,11 +44,11 @@
@client.wiredump_dev = STDERR if $DEBUG
@client.add_method('a_method')
end
def teardown
- teardown_server
- teardown_client
+ teardown_server if @server
+ teardown_client if @client
end
def teardown_server
@server.shutdown
@server_thread.kill