Skip to content

Commit

Permalink
Fix TransportReplicationActionTests (#5737)
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Singh <surajrider@gmail.com>

Signed-off-by: Suraj Singh <surajrider@gmail.com>
(cherry picked from commit c90a34b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Jan 10, 2023
1 parent 9c5bbd5 commit 5a20117
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public void setUp() throws Exception {
Metadata metadata = Metadata.builder().build();
ClusterState clusterState = ClusterState.builder(org.opensearch.cluster.ClusterName.CLUSTER_NAME_SETTING.getDefault(Settings.EMPTY))
.metadata(metadata)
.nodes(clusterService.state().nodes())
.build();
setState(clusterService, clusterState);
}
Expand Down

0 comments on commit 5a20117

Please sign in to comment.