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_x509store.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_x509store.rb')
-rw-r--r-- | test/test_x509store.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_x509store.rb b/test/test_x509store.rb index 36bef797..dbab6424 100644 --- a/test/test_x509store.rb +++ b/test/test_x509store.rb @@ -4,10 +4,10 @@ require_relative "utils" class OpenSSL::TestX509Store < OpenSSL::TestCase def setup super - @rsa1024 = OpenSSL::TestUtils::TEST_KEY_RSA1024 - @rsa2048 = OpenSSL::TestUtils::TEST_KEY_RSA2048 - @dsa256 = OpenSSL::TestUtils::TEST_KEY_DSA256 - @dsa512 = OpenSSL::TestUtils::TEST_KEY_DSA512 + @rsa1024 = Fixtures.pkey("rsa1024") + @rsa2048 = Fixtures.pkey("rsa2048") + @dsa256 = Fixtures.pkey("dsa256") + @dsa512 = Fixtures.pkey("dsa512") @ca1 = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=CA1") @ca2 = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=CA2") @ee1 = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=EE1") |