From 456a7247f9e88fc2518b69a1a00e905c6db6d775 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 7 Feb 2020 09:08:49 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/spec_helper.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spec/spec_helper.rb') diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ad15793f23b..35bf6846ab3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -124,6 +124,9 @@ RSpec.configure do |config| if ENV['CI'] || ENV['RETRIES'] # This includes the first try, i.e. tests will be run 4 times before failing. config.default_retry_count = ENV.fetch('RETRIES', 3).to_i + 1 + end + + if ENV['FLAKY_RSPEC_GENERATE_REPORT'] config.reporter.register_listener( RspecFlaky::Listener.new, :example_passed, -- cgit v1.2.3