summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-10 10:19:28 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-10 10:19:28 +0000
commit66fd3a4eb531bb51dd8d548acd0279f708b5b3c9 (patch)
treebee02c07dc7dc61b7b68df7c03e6849bc91a9c43 /test
parentf45fc7daa00faa561c1bce32b598c06e1ec0d978 (diff)
Wait the server until it stops.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/open-uri/test_open-uri.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/open-uri/test_open-uri.rb b/test/open-uri/test_open-uri.rb
index e73f3d3497..692495a72d 100644
--- a/test/open-uri/test_open-uri.rb
+++ b/test/open-uri/test_open-uri.rb
@@ -25,6 +25,9 @@ class TestOpenURI < Test::Unit::TestCase
yield srv, dr, "http://#{host}:#{port}"
ensure
srv.shutdown
+ until srv.status == :Stop
+ sleep 0.1
+ end
end
}
end