about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-08-24 13:31:55 +0200
committerGitHub <noreply@github.com>2017-08-24 13:31:55 +0200
commitc66fe2aeba84af5ab47c20298ddc8dceaf0e179f (patch)
tree2a07c5345ab567cc1409639874f15ccf8982118a /app/models
parentfbe1115114edb2d46c05b5065398b7234b9fb6a0 (diff)
Minor performance improvement for test suite (#4678)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index c3be975fb..0c9c6aed4 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -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