From 99035a250bd69bf8e8f3e351c7be4b47931b9e24 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Mon, 21 Jun 2021 11:21:11 +0100 Subject: [PATCH] Move Rspec retries count to CI config and remove in local environment When running tests locally we want them to fail immediately Reference: https://github.com/NoRedInk/rspec-retry#environment-variables --- .github/workflows/build.yml | 1 + spec/spec_helper.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd3ba2eecd..671c5e3f43 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,7 @@ env: DISABLE_KNAPSACK: true TIMEZONE: UTC COVERAGE: true + RSPEC_RETRY_RETRY_COUNT: 3 jobs: test-controllers-and-serializers: diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 547031ccb1..9147377473 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -101,7 +101,7 @@ RSpec.configure do |config| # Show retries in test output config.verbose_retry = true # Set maximum retry count - config.default_retry_count = 3 + config.default_retry_count = 0 # Force colored output, whether or not the output is a TTY config.color_mode = :on