From 27efa2d8b79c783b94e945a58ecc1c16386f8703 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 11 Jun 2024 16:05:38 +0800 Subject: [PATCH] DEV: Increment attempts for ce91767b90bc6e19b6e8f2a4bb88f07b0ca7355a (#27413) If we don't increment attempts, we will retry forever. --- spec/rails_helper.rb | 1 + 1 file changed, 1 insertion(+) 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