must not hold PsiLock in readAction in tests

This commit is contained in:
Alexey Kudravtsev
2010-11-19 14:32:35 +03:00
parent eebaa506c5
commit cd2f33151f
@@ -753,7 +753,7 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
return;
}
LOG.assertTrue(myTestModeFlag || !Thread.holdsLock(PsiLock.LOCK), "Thread must not hold PsiLock while performing readAction");
LOG.assertTrue(!Thread.holdsLock(PsiLock.LOCK), "Thread must not hold PsiLock while performing readAction");
try {
myActionsLock.readLock().acquire();
}