PartitionsExchangeAwareTest is flaky - Fixes
@@ -263,10 +263,14 @@ public class PartitionsExchangeAwareTest extends GridCommonAbstractTest {
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());
+ }
}
}
