summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-20 01:23:33 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-09-20 01:23:33 +0000
commitc7b58831a3dd9982fcc718515ca0306200acda30 (patch)
tree04fd3cb75dac67b927081006a80c90582fad90c9 /test
parent35c065ae0e02052a8335d2f305f7cf80e716bb57 (diff)
Explicitly close the tcp connection.
Without this, the connection will be alive without GC after exit the block and the test will fail as "TCPServer was closed and SSLServer is still alive" on 64bit Unix: at least CentOS, Ubuntu, and FreeBSD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/openssl/test_ssl.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index 8811e39c91..b598648602 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -212,6 +212,7 @@ tddwpBAEDjcwMzA5NTYzMTU1MzAwpQMCARM=
ssl.session = session
assert_equal session, ssl.session
+ sock.close
}
end