Class: DeepTest::DeadlockDetector

Inherits:
Object
  • Object
show all
Defined in:
lib/deep_test/deadlock_detector.rb

Class Method Summary collapse

Class Method Details

.due_to_deadlock?(error) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/deep_test/deadlock_detector.rb', line 3

def self.due_to_deadlock?(error)
  error && !error.message.to_s.match(/Deadlock found when trying to get lock/).nil?
end