mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 22:11:39 +08:00
DEV: Increment attempts for ce91767b90bc6e19b6e8f2a4bb88f07b0ca7355a (#27413)
If we don't increment attempts, we will retry forever.
This commit is contained in:
parent
ce91767b90
commit
27efa2d8b7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user