aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-12-14 18:21:04 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-12-14 18:21:04 +0900
commit538aec722185457173a7cbf9fcae5a3a1de177b1 (patch)
tree4956a2fdd1191cc6b6e73cbe860e25ea2412aa68 /test
parent308c158d7be4208591519a4d276014178e84f434 (diff)
parentd5014e393ad18134fd5f7585d0a0182c18c2d159 (diff)
downloadruby-openssl-538aec722185457173a7cbf9fcae5a3a1de177b1.tar.gz
Merge branch 'ky/fix-ssl-test-internal-encoding'
* ky/fix-ssl-test-internal-encoding: Fix test-all tests to avoid creating report_on_exception warnings
Diffstat (limited to 'test')
-rw-r--r--test/test_ssl.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/test_ssl.rb b/test/test_ssl.rb
index 1f7f6a39..3b063d2e 100644
--- a/test/test_ssl.rb
+++ b/test/test_ssl.rb
@@ -1340,13 +1340,15 @@ end
ctx2.enable_fallback_scsv
ctx2.max_version = OpenSSL::SSL::TLS1_1_VERSION
s2 = OpenSSL::SSL::SSLSocket.new(sock2, ctx2)
- t = Thread.new { s2.connect }
- assert_raise_with_message(OpenSSL::SSL::SSLError, /inappropriate fallback/) {
- s1.accept
+ t = Thread.new {
+ assert_raise_with_message(OpenSSL::SSL::SSLError, /inappropriate fallback/) {
+ s2.connect
+ }
}
assert_raise_with_message(OpenSSL::SSL::SSLError, /inappropriate fallback/) {
- t.join
+ s1.accept
}
+ t.join
ensure
sock1.close
sock2.close