mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-17 04:34:24 +00:00
Remove retries from test runs
If a spec is flaky, we need to fix it. Retry is just hiding problems for a while and is adding to execution time.
This commit is contained in:
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@@ -9,7 +9,6 @@ env:
|
||||
DISABLE_KNAPSACK: true
|
||||
TIMEZONE: UTC
|
||||
COVERAGE: true
|
||||
RSPEC_RETRY_RETRY_COUNT: 3
|
||||
RAILS_ENV: test
|
||||
|
||||
permissions:
|
||||
|
||||
1
Gemfile
1
Gemfile
@@ -150,7 +150,6 @@ group :test, :development do
|
||||
gem 'knapsack'
|
||||
gem 'letter_opener', '>= 1.4.1'
|
||||
gem 'rspec-rails', ">= 3.5.2"
|
||||
gem 'rspec-retry'
|
||||
gem 'rswag-specs'
|
||||
gem 'shoulda-matchers'
|
||||
gem 'timecop'
|
||||
|
||||
@@ -547,8 +547,6 @@ GEM
|
||||
rspec-expectations (~> 3.10)
|
||||
rspec-mocks (~> 3.10)
|
||||
rspec-support (~> 3.10)
|
||||
rspec-retry (0.6.2)
|
||||
rspec-core (> 3.3)
|
||||
rspec-support (3.10.3)
|
||||
rswag-api (2.6.0)
|
||||
railties (>= 3.1, < 7.1)
|
||||
@@ -798,7 +796,6 @@ DEPENDENCIES
|
||||
roadie-rails
|
||||
roo
|
||||
rspec-rails (>= 3.5.2)
|
||||
rspec-retry
|
||||
rswag-api
|
||||
rswag-specs
|
||||
rswag-ui
|
||||
|
||||
@@ -12,7 +12,6 @@ require 'view_component/test_helpers'
|
||||
require_relative "../config/environment"
|
||||
require 'rspec/rails'
|
||||
require 'capybara'
|
||||
require 'rspec/retry'
|
||||
require 'paper_trail/frameworks/rspec'
|
||||
require "factory_bot_rails"
|
||||
|
||||
@@ -59,11 +58,6 @@ RSpec.configure do |config|
|
||||
# rspec-rails.
|
||||
config.infer_base_class_for_anonymous_controllers = false
|
||||
|
||||
# Show retries in test output
|
||||
config.verbose_retry = true
|
||||
# Set maximum retry count
|
||||
config.default_retry_count = 0
|
||||
|
||||
# Force colored output, whether or not the output is a TTY
|
||||
config.color_mode = :on
|
||||
|
||||
|
||||
Reference in New Issue
Block a user