From 130a2ed7c1d87845ebf0ed065200cec8a67fece4 Mon Sep 17 00:00:00 2001 From: Josh Thompson Date: Thu, 18 Apr 2024 18:07:03 -0600 Subject: [PATCH] calculate hash once per test run, per thread --- test/factories/user.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/factories/user.rb b/test/factories/user.rb index 7823c0e9f..bc6cddf80 100644 --- a/test/factories/user.rb +++ b/test/factories/user.rb @@ -1,8 +1,10 @@ +pass_crypt = PasswordHash.create("test").first + FactoryBot.define do factory :user do sequence(:email) { |n| "user#{n}@example.com" } sequence(:display_name) { |n| "User #{n}" } - pass_crypt { "$argon2id$v=19$m=65536,t=3,p=4$M+oP6KQOdFLDeiYa/gbzAg$pULNwXgKt2sEmTxMXxt298skEqc8MjnPwGsk075jLrk" } + pass_crypt { pass_crypt } # These attributes are not the defaults, but in most tests we want # a 'normal' user who can log in without being redirected etc. -- 2.45.1