diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index c7ad52d781b..c127fa662dc 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -535,6 +535,7 @@ RSpec.configure do |config| self._using_session(name, &block) rescue Socket::ResolutionError puts "Socket::ResolutionError error encountered... Current thread count: #{Thread.list.size}" + attempts += 1 attempts <= 1 ? retry : raise end end