mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
DEV: Increment attempts for ce91767b90
(#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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user