DEV: Increment attempts for ce91767b90 (#27413)

If we don't increment attempts, we will retry forever.
This commit is contained in:
Alan Guo Xiang Tan 2024-06-11 16:05:38 +08:00 committed by GitHub
parent ce91767b90
commit 27efa2d8b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -535,6 +535,7 @@ RSpec.configure do |config|
self._using_session(name, &block) self._using_session(name, &block)
rescue Socket::ResolutionError rescue Socket::ResolutionError
puts "Socket::ResolutionError error encountered... Current thread count: #{Thread.list.size}" puts "Socket::ResolutionError error encountered... Current thread count: #{Thread.list.size}"
attempts += 1
attempts <= 1 ? retry : raise attempts <= 1 ? retry : raise
end end
end end