This is an automated email from the ASF dual-hosted git repository.
apkhmv pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new bcbe8280aa IGNITE-19576 Fix
ItClusterManagerTest.testClusterConfigurationIsRemovedFromClusterStateAfterUpdating
(#2110)
bcbe8280aa is described below
commit bcbe8280aab3aaea1926900ec00cd70871f85b63
Author: Ivan Gagarkin <[email protected]>
AuthorDate: Mon May 29 18:43:51 2023 +0400
IGNITE-19576 Fix
ItClusterManagerTest.testClusterConfigurationIsRemovedFromClusterStateAfterUpdating
(#2110)
---
.../ignite/internal/cluster/management/ItClusterManagerTest.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git
a/modules/cluster-management/src/integrationTest/java/org/apache/ignite/internal/cluster/management/ItClusterManagerTest.java
b/modules/cluster-management/src/integrationTest/java/org/apache/ignite/internal/cluster/management/ItClusterManagerTest.java
index e57ce8eb8f..f5efdfb853 100644
---
a/modules/cluster-management/src/integrationTest/java/org/apache/ignite/internal/cluster/management/ItClusterManagerTest.java
+++
b/modules/cluster-management/src/integrationTest/java/org/apache/ignite/internal/cluster/management/ItClusterManagerTest.java
@@ -378,10 +378,9 @@ public class ItClusterManagerTest extends
BaseItClusterManagementTest {
cluster.remove(leaderNode);
// Wait for a new leader to be elected.
- Awaitility.await().until(() -> findLeaderNode(cluster).isPresent());
-
- // Find the new CMG leader.
- MockNode newLeaderNode = findLeaderNode(cluster).orElseThrow();
+ MockNode newLeaderNode = Awaitility.await()
+ .until(() -> findLeaderNode(cluster), Optional::isPresent)
+ .get();
// Check the new leader cancels the action.
assertThat(newLeaderNode.clusterManager().clusterConfigurationToUpdate(),
willThrow(CancellationException.class));