Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romseygeek committed Oct 16, 2023
1 parent 8d1e8fe commit 09c5378
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import org.elasticsearch.Version;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.OriginalIndices;
import org.elasticsearch.cluster.ClusterName;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.node.DiscoveryNode;
import org.elasticsearch.cluster.node.DiscoveryNodeUtils;
import org.elasticsearch.cluster.routing.GroupShardsIterator;
Expand Down Expand Up @@ -192,7 +194,7 @@ public void sendExecuteQuery(
null,
shardsIter,
timeProvider,
null,
new ClusterState.Builder(new ClusterName("test")).build(),
task,
SearchResponse.Clusters.EMPTY
) {
Expand Down Expand Up @@ -324,7 +326,7 @@ private void testMixedVersionsShardsSearch(Version oldVersion, Version newVersio
EsExecutors.DIRECT_EXECUTOR_SERVICE,
resultConsumer,
searchRequest,
new ActionListener<SearchResponse>() {
new ActionListener<>() {
@Override
public void onFailure(Exception e) {
responses.add(e);
Expand All @@ -336,7 +338,7 @@ public void onResponse(SearchResponse response) {
},
shardsIter,
timeProvider,
null,
new ClusterState.Builder(new ClusterName("test")).build(),
task,
SearchResponse.Clusters.EMPTY
);
Expand Down Expand Up @@ -474,7 +476,7 @@ public void sendExecuteQuery(
null,
shardsIter,
timeProvider,
null,
new ClusterState.Builder(new ClusterName("test")).build(),
task,
SearchResponse.Clusters.EMPTY
) {
Expand Down Expand Up @@ -622,7 +624,7 @@ public void sendExecuteQuery(
null,
shardsIter,
timeProvider,
null,
new ClusterState.Builder(new ClusterName("test")).build(),
task,
SearchResponse.Clusters.EMPTY
) {
Expand Down

0 comments on commit 09c5378

Please sign in to comment.