Test Result : BlockInfoManagerSuite

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

All Tests

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