do not run JSDocumentationTest in write action

This commit is contained in:
Kirill Safonov
2013-01-30 16:10:41 +04:00
parent 06b223a08b
commit 3bafaea7e3
@@ -278,7 +278,7 @@ public abstract class AbstractExternalFilter {
@SuppressWarnings({"HardCodedStringLiteral"})
public String getExternalDocInfo(final String surl) throws Exception {
Application app = ApplicationManager.getApplication();
if (app.isDispatchThread() || app.isWriteAccessAllowed()) {
if (!app.isUnitTestMode() && app.isDispatchThread() || app.isWriteAccessAllowed()) {
LOG.error("May block indefinitely: shouldn't be called from EDT or under write lock");
return null;
}