From ffedfbf8ea63ff686d388921368a8d19b5d7582e Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 11 Sep 2015 16:48:52 +0300 Subject: [PATCH] test fix --- .../testSrc/com/intellij/concurrency/JobUtilTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } + } } }