Skip to content

Commit

Permalink
Use an actual EVP_PKEY in TypeError test
Browse files Browse the repository at this point in the history
  • Loading branch information
cwjenkins committed Jul 13, 2020
1 parent f7c82b4 commit 43a07e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/openssl/test_pkey.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def test_x25519
def test_compare?
key1 = Fixtures.pkey("rsa1024")
key2 = Fixtures.pkey("rsa1024")

key3 = Fixtures.pkey("rsa2048")
key4 = Fixtures.pkey("dh-1")

assert_equal(true, key1.compare?(key2))
assert_equal(true, key1.public_key.compare?(key2))
Expand All @@ -166,7 +166,7 @@ def test_compare?
assert_equal(false, key1.compare?(key3))

assert_raise(TypeError) do
key1.compare?("RSA Key")
key1.compare?(key4)
end
end
end

0 comments on commit 43a07e9

Please sign in to comment.