1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Give a chance to complete server.accept

* test/net/ftp/test_ftp.rb (test_tls_connect_timeout): get rid of a test error on Windows.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2016-11-28 03:14:07 +00:00
parent a530b970f4
commit 8e7e71d63e

View file

@ -2120,6 +2120,7 @@ EOF
open_timeout: 0.1)
end
ensure
sleep 0.1 # give a chance to complete server.accept
sock.close if sock
server.close
end