From d20edc3be0dc63a9bf8b913b9b0bf1532bd487ce Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 23 Sep 2011 18:00:08 +0200 Subject: [PATCH] dump threads when the document takes too long to commit in autopopup tests --- .../codeInsight/completion/CompletionAutoPopupTestCase.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy b/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy index b5e7db07b6db..62c5c9d0fd8e 100644 --- a/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy +++ b/java/testFramework/src/com/intellij/codeInsight/completion/CompletionAutoPopupTestCase.groovy @@ -100,6 +100,7 @@ abstract class CompletionAutoPopupTestCase extends LightCodeInsightFixtureTestCa def start = System.currentTimeMillis() while (!committed.get()) { if (System.currentTimeMillis() - start >= 10000) { + printThreadDump() fail('too long waiting for a document to be committed') } UIUtil.pump();