I have a simple mosaic unit test which tries to use a H2 datastore. There are only two images in the mosaic. During creation of the mosaic, I get an SQL exception about a lock timeout (see log file).
The same error is occuring during a Jenkins build of geotools-master:
But the unit tests do not seem to fail. (In later builds, the exception doesn't seem to occur, but the number of tests that have run is also a lot smaller.)