prevent race conditions when creating archives

This commit is contained in:
Christophe Robillard 2021-04-27 18:57:13 +02:00
parent dfbe004122
commit 09870c918d
5 changed files with 23 additions and 13 deletions

View file

@ -2,6 +2,7 @@ FactoryBot.define do
factory :archive do
time_span_type { 'everything' }
groupe_instructeurs { [association(:groupe_instructeur)] }
key { 'unique-key' }
trait :pending do
status { 'pending' }