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

test_get_ephemeral_key: use assert_instance_of

* test/openssl/test_ssl.rb (test_get_ephemeral_key): should use
  assert_instance_of instead of comparison of classes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-04-04 15:08:20 +00:00
parent cd2eb1f9ec
commit d1683b59b0

View file

@ -1183,7 +1183,7 @@ end
ctx.ciphers = cipher
server_connect(port, ctx) do |ssl|
if ephemeral
assert_equal(ephemeral, ssl.tmp_key.class)
assert_instance_of(ephemeral, ssl.tmp_key)
else
assert_nil(ssl.tmp_key)
end