0
0
Fork 0

Minor performance improvement for test suite (#4678)

This commit is contained in:
Eugen Rochko 2017-08-24 13:31:55 +02:00 committed by GitHub
parent fbe1115114
commit c66fe2aeba
3 changed files with 20 additions and 3 deletions

View file

@ -268,7 +268,7 @@ class Account < ApplicationRecord
def generate_keys
return unless local?
keypair = OpenSSL::PKey::RSA.new(Rails.env.test? ? 1024 : 2048)
keypair = OpenSSL::PKey::RSA.new(Rails.env.test? ? 512 : 2048)
self.private_key = keypair.to_pem
self.public_key = keypair.public_key.to_pem
end