Test Result : BlockInfoManagerSuite

0 failures (±0)
18 tests (±0)
Took 1.5 sec.

All Tests

Test nameDurationStatus
assertBlockIsLockedForWriting throws exception if block is not locked2 msPassed
basic lockNewBlockForWriting5 msPassed
cannot grab a writer lock while already holding a write lock1 msPassed
downgrade lock2 msPassed
get non-existent block0 msPassed
initial memory usage1 msPassed
lockNewBlockForWriting blocks while write lock is held, then returns false after release0.3 secPassed
lockNewBlockForWriting blocks while write lock is held, then returns true after removal0.3 secPassed
multiple tasks can hold read locks3 msPassed
read locks are reentrant2 msPassed
read locks will block writer0.3 secPassed
releaseAllLocksForTask releases write locks3 msPassed
removing a block causes blocked callers to receive None0.3 secPassed
removing a block while holding only a read lock throws IllegalStateException1 msPassed
removing a block without holding any locks throws IllegalStateException1 msPassed
removing a non-existent block throws IllegalArgumentException2 msPassed
single task can hold write lock2 msPassed
write lock will block readers0.3 secPassed