Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Configure rspec-retry via ENV variable

Damian Legawiecafd29abf9568
diff --git a/backend/spec/spec_helper.rb b/backend/spec/spec_helper.rb
index 1cfb1c1aa0..d017883f14 100644
--- a/backend/spec/spec_helper.rb
+++ b/backend/spec/spec_helper.rb
@@ -112,7 +112,7 @@ RSpec.configure do |config|
config.display_try_failure_messages = true
config.around :each, type: :feature do |ex|
- ex.run_with_retry retry: 3
+ ex.run_with_retry retry: ENV.fetch('RSPEC_RETRY_RETRY_COUNT', 2).to_i
end
config.order = :random