summaryrefslogtreecommitdiff
path: root/test/xmlrpc
diff options
context:
space:
mode:
Diffstat (limited to 'test/xmlrpc')
-rw-r--r--test/xmlrpc/webrick_testing.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/xmlrpc/webrick_testing.rb b/test/xmlrpc/webrick_testing.rb
index eb054a77e7..2ca52bad22 100644
--- a/test/xmlrpc/webrick_testing.rb
+++ b/test/xmlrpc/webrick_testing.rb
@@ -10,7 +10,7 @@ module WEBrick_Testing
raise "already started" if @__server
@__started = false
- Thread.new {
+ @__server_thread = Thread.new {
@__server = WEBrick::HTTPServer.new(
{
:Logger => DummyLog.new,
@@ -32,6 +32,7 @@ module WEBrick_Testing
@__server.shutdown
Thread.pass while @__started # wait until the server is down
}
+ @__server_thread.join
@__server = nil
end
end