Skip to content

Commit

Permalink
Prevent Faker Address country_code from raising RetryLimitExceeded (d…
Browse files Browse the repository at this point in the history
…ecidim#9036) (#73)

Co-authored-by: Quentin Champ <26109239+Quentinchampenois@users.noreply.github.com>
  • Loading branch information
tramuntanal and Quentinchampenois committed Apr 5, 2022
1 parent 0d9cfd4 commit 1e56b41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decidim-core/db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@
organization: organization
)

3.times do
3.times do |time|
parent = Decidim::Scope.create!(
name: Decidim::Faker::Localized.literal(Faker::Address.unique.state),
code: Faker::Address.unique.country_code,
code: "#{Faker::Address.country_code}_#{time}",
scope_type: province,
organization: organization
)
Expand Down

0 comments on commit 1e56b41

Please sign in to comment.