neo4j/neo4j — pull request #364 by tinwelint (2012-12-13 10:26:21+00:00)
Title: Rewritten TestDeadlockDetection w/ timeouts and diagnostics dumping on failure

* Rewritten deadlock tests as well as diagnostics dumping if something hangs, as this test has been known to hang now and then.
* Refactorings around the diagnostics dumping in LockManager and RagManager
* Code reuse between TestDeadlockDetection and TestRWLock