Skip to content

Commit

Permalink
Fixing precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
psychbot committed Aug 15, 2023
1 parent 0442656 commit e89fbcf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public void testJoinClusterWithDecommissionFailed() {
public void testJoinClusterWithNonRemoteStoreNodeJoining() {
ClusterState currentState = ClusterState.builder(ClusterName.DEFAULT).build();

DiscoveryNode joiningNode = newDiscoveryNode(Collections.EMPTY_MAP);
DiscoveryNode joiningNode = newDiscoveryNode(Collections.emptyMap());
JoinTaskExecutor.ensureRemoteStoreNodesCompatibility(joiningNode, currentState);
}

Expand All @@ -359,7 +359,7 @@ public void testJoinClusterWithNonRemoteStoreNodeJoiningNonRemoteStoreCluster()
.nodes(DiscoveryNodes.builder().add(existingNode).localNodeId(existingNode.getId()).build())
.build();

DiscoveryNode joiningNode = newDiscoveryNode(Collections.EMPTY_MAP);
DiscoveryNode joiningNode = newDiscoveryNode(Collections.emptyMap());

JoinTaskExecutor.ensureRemoteStoreNodesCompatibility(joiningNode, currentState);
}
Expand Down Expand Up @@ -447,7 +447,7 @@ public void testPreventJoinClusterWithNonRemoteStoreNodeJoiningRemoteStoreCluste
.nodes(DiscoveryNodes.builder().add(existingNode).localNodeId(existingNode.getId()).build())
.build();

DiscoveryNode joiningNode = newDiscoveryNode(Collections.EMPTY_MAP);
DiscoveryNode joiningNode = newDiscoveryNode(Collections.emptyMap());
Exception e = assertThrows(
IllegalStateException.class,
() -> JoinTaskExecutor.ensureRemoteStoreNodesCompatibility(joiningNode, currentState)
Expand Down

0 comments on commit e89fbcf

Please sign in to comment.