commit | 7beefeebc775ec63e56f2dd7ec8f6640cdc099d3 | [log] [tgz] |
---|---|---|
author | Ivan Rakov <irakov@apache.org> | Mon Feb 03 14:49:34 2020 +0300 |
committer | Ivan Rakov <irakov@apache.org> | Mon Feb 03 14:49:34 2020 +0300 |
tree | adf3cbfb9a82118cdbf8c15d45dffbf49918b989 | |
parent | d687afb2675e362606c8a166367b347b28477d02 [diff] |
IGNITE-12607 PartitionsExchangeAwareTest is flaky - Fixes #7339.
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/PartitionsExchangeAwareTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/PartitionsExchangeAwareTest.java index 2070dcd..48512f0 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/PartitionsExchangeAwareTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/PartitionsExchangeAwareTest.java
@@ -263,10 +263,14 @@ assertEquals(updatePossible, GridTestUtils.waitForCondition(new GridAbsPredicate() { @Override public boolean apply() { - assertTrue(txUpdateFut.isDone() == atomicUpdateFut.isDone()); - - return atomicUpdateFut.isDone(); + return atomicUpdateFut.isDone() && txUpdateFut.isDone(); } }, TIMEOUT_SECONDS * 1000)); + + if (!updatePossible) { + assertFalse(atomicUpdateFut.isDone()); + + assertFalse(txUpdateFut.isDone()); + } } }