aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-09-17 19:09:29 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-09-17 19:10:29 +0900
commitb039f3e268c208fbc161748235acbeb5e5750b1c (patch)
treea1d218f85daa6762f9b9591cfd34dad08891638e /test
parentf9c04779a84b45d85dc26dc19ea600d0613539e2 (diff)
downloadruby-openssl-b039f3e268c208fbc161748235acbeb5e5750b1c.tar.gz
test/test_ssl: fix test_ctx_options
Reorder the assertions. The fix in f9c04779a84b was incomplete - setting nil as the options is also affected by the Ubuntu's patch: http://rubyci.s3.amazonaws.com/ubuntu/ruby-trunk/log/20160917T063002Z.fail.html.gz
Diffstat (limited to 'test')
-rw-r--r--test/test_ssl.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_ssl.rb b/test/test_ssl.rb
index f7048c3f..8b4c090b 100644
--- a/test/test_ssl.rb
+++ b/test/test_ssl.rb
@@ -10,13 +10,13 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase
assert (OpenSSL::SSL::OP_ALL & ctx.options) == OpenSSL::SSL::OP_ALL,
"OP_ALL is set by default"
- ctx.options = nil
- assert_equal OpenSSL::SSL::OP_ALL, ctx.options
ctx.options = 4
assert_equal 4, ctx.options & 4
if ctx.options != 4
pend "SSL_CTX_set_options() seems to be modified by distributor"
end
+ ctx.options = nil
+ assert_equal OpenSSL::SSL::OP_ALL, ctx.options
assert_equal true, ctx.setup
assert_predicate ctx, :frozen?