Skip to content

Commit 1664f5e

Browse files
committed
IGNITE-27934 Fix flaky GridBinaryAffinityKeySelfTest#testAffinity
1 parent 53cde36 commit 1664f5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/core/src/test/java/org/apache/ignite/internal/binary/GridBinaryAffinityKeySelfTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import org.apache.ignite.lang.IgniteCallable;
3737
import org.apache.ignite.lang.IgniteRunnable;
3838
import org.apache.ignite.resources.IgniteInstanceResource;
39+
import org.apache.ignite.testframework.GridTestUtils;
3940
import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
4041
import org.junit.Test;
4142

@@ -101,6 +102,11 @@ public void testAffinity() throws Exception {
101102
// Expected error.
102103
}
103104

105+
assertTrue("Failed to wait for minor version change",
106+
GridTestUtils.waitForCondition(() ->
107+
grid(0).context().discovery().topologyVersionEx().minorTopologyVersion() == 1,
108+
5_000));
109+
104110
checkAffinity(igniteNoCache);
105111
}
106112
}

0 commit comments

Comments
 (0)