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:
parent
cd2eb1f9ec
commit
d1683b59b0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue