diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-15 14:51:48 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-15 14:51:48 +0000 |
commit | f2decff8e14c2991cf28d7bcb19d5208b977d064 (patch) | |
tree | 6fa2e2c78f79c18379341a8dd4e887a817031b2c /test/xmlrpc/webrick_testing.rb | |
parent | fedaf28fbb8080178623ea85f42005f326c8ed4b (diff) | |
download | ruby-f2decff8e14c2991cf28d7bcb19d5208b977d064.tar.gz ruby-f2decff8e14c2991cf28d7bcb19d5208b977d064.tar.xz ruby-f2decff8e14c2991cf28d7bcb19d5208b977d064.zip |
* test/xmlrpc/webrick_testing.rb: join webrick server thread.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/xmlrpc/webrick_testing.rb')
-rw-r--r-- | test/xmlrpc/webrick_testing.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/xmlrpc/webrick_testing.rb b/test/xmlrpc/webrick_testing.rb index eb054a77e..2ca52bad2 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 |