mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/net/http/utils.rb (TestNetHTTPUtils#teardown): add nil check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
25925517fe
commit
e15b3c83b8
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sun May 29 02:16:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* test/net/http/utils.rb (TestNetHTTPUtils#teardown): add nil check.
|
||||||
|
|
||||||
Sun May 29 00:22:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Sun May 29 00:22:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* process.c (before_exec, after_exec): change from macro to function.
|
* process.c (before_exec, after_exec): change from macro to function.
|
||||||
|
|
|
@ -31,9 +31,11 @@ module TestNetHTTPUtils
|
||||||
end
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
@server.shutdown
|
if @server
|
||||||
until @server.status == :Stop
|
@server.shutdown
|
||||||
sleep 0.1
|
until @server.status == :Stop
|
||||||
|
sleep 0.1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
# resume global state
|
# resume global state
|
||||||
Net::HTTP.version_1_2
|
Net::HTTP.version_1_2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue