> My guess is multiple threads (the test and the state watcher) trying to > lock the registry at the same time. >
That's exactly it. I've had that error before and debugged it a bit. Some info: - to resolve the problem past I needed to make sure our DaemonRegistry (not sure how it is called today) is thread safe - the particular exception you see I could only reproduce on java 1.6. We can pair on it a bit if you like. Hope that helps! -- Szczepan Faber Principal engineer@gradleware Lead@mockito
