diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-01-16 00:54:17 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-01-17 14:00:20 +0900 |
commit | 2230677ecefe6acf9f88ff461540d965cccded83 (patch) | |
tree | bd0ae175c1f3f91cac6f3db1a74f376fabaf3f2a /test/test_pkcs7.rb | |
parent | 8ba8d9ba3d990b1f59f20a1a72ad9d5e0fac4b15 (diff) | |
download | ruby-openssl-2230677ecefe6acf9f88ff461540d965cccded83.tar.gz |
test: prepare test PKey instances on demand
Preparing for the introduction of the memory leak checker. Do not leave
OpenSSL objects in constants that wouldn't be GCed in order to avoid
false positives.
Diffstat (limited to 'test/test_pkcs7.rb')
-rw-r--r-- | test/test_pkcs7.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pkcs7.rb b/test/test_pkcs7.rb index 3d0a5061..c0a04acd 100644 --- a/test/test_pkcs7.rb +++ b/test/test_pkcs7.rb @@ -4,8 +4,8 @@ require_relative 'utils' class OpenSSL::TestPKCS7 < OpenSSL::TestCase def setup super - @rsa1024 = OpenSSL::TestUtils::TEST_KEY_RSA1024 - @rsa2048 = OpenSSL::TestUtils::TEST_KEY_RSA2048 + @rsa1024 = Fixtures.pkey("rsa1024") + @rsa2048 = Fixtures.pkey("rsa2048") ca = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=CA") ee1 = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=EE1") ee2 = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=EE2") |