diff --git a/platform/platform-tests/testSrc/com/intellij/concurrency/JobUtilTest.java b/platform/platform-tests/testSrc/com/intellij/concurrency/JobUtilTest.java index 9864dc24b7e5..b4db0b59eb04 100644 --- a/platform/platform-tests/testSrc/com/intellij/concurrency/JobUtilTest.java +++ b/platform/platform-tests/testSrc/com/intellij/concurrency/JobUtilTest.java @@ -411,14 +411,16 @@ public class JobUtilTest extends PlatformTestCase { boolean wasDone = job.isDone(); boolean wasStarted = started.get(); boolean wasFinished = finished.get(); - if (!wasFinished) { - assertTrue(wasStarted+", "+wasDone, wasDone == !wasStarted); + if (wasStarted && !wasFinished) { + assertFalse(wasDone); } // else no guarantees + // but can be finished=true but done=false still if (wasDone) { assertTrue(wasFinished); } + } } }