Sha256: 450a2bb482118ebc1b025774387ce0581c731cc887ef7230e8cec562f1b3c7e3

Contents?: true

Size: 184 Bytes

Versions: 30

Compression:

Stored size: 184 Bytes

Contents

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

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
jason-o-matic-deep_test-1.2.2.1 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.10 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.11 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.12 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.13 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.14 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.2 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.3 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.4 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.5 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.6 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.7 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.8 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.9 lib/deep_test/deadlock_detector.rb
jperkins-deep_test-1.2.2 lib/deep_test/deadlock_detector.rb
deep_test_pre-2.0 lib/deep_test/deadlock_detector.rb
jason-o-matic-deep_test-1.2.2.15 lib/deep_test/deadlock_detector.rb
jstorimer-deep-test-2.0.0 lib/deep_test/deadlock_detector.rb
jstorimer-deep-test-1.4.0 lib/deep_test/deadlock_detector.rb
jstorimer-deep-test-1.3.0 lib/deep_test/deadlock_detector.rb