Skip to content

Commit b7c1531

Browse files
committed
Fix constructor usages
1 parent 560cb05 commit b7c1531

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/action/NamedWriteablesTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
package org.elasticsearch.xpack.esql.action;
99

1010
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
11+
import org.elasticsearch.common.settings.Settings;
1112
import org.elasticsearch.compute.operator.Operator;
1213
import org.elasticsearch.compute.operator.topn.TopNOperatorStatus;
1314
import org.elasticsearch.test.ESTestCase;
@@ -18,7 +19,7 @@
1819
public class NamedWriteablesTests extends ESTestCase {
1920

2021
public void testTopNStatus() throws Exception {
21-
try (EsqlPlugin plugin = new EsqlPlugin()) {
22+
try (EsqlPlugin plugin = new EsqlPlugin(Settings.EMPTY)) {
2223
NamedWriteableRegistry registry = new NamedWriteableRegistry(plugin.getNamedWriteables());
2324
TopNOperatorStatus origin = new TopNOperatorStatus(
2425
randomNonNegativeInt(),

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/plugin/ClusterRequestTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected Writeable.Reader<ClusterComputeRequest> instanceReader() {
5757
protected NamedWriteableRegistry getNamedWriteableRegistry() {
5858
List<NamedWriteableRegistry.Entry> writeables = new ArrayList<>();
5959
writeables.addAll(new SearchModule(Settings.EMPTY, List.of()).getNamedWriteables());
60-
writeables.addAll(new EsqlPlugin().getNamedWriteables());
60+
writeables.addAll(new EsqlPlugin(Settings.EMPTY).getNamedWriteables());
6161
return new NamedWriteableRegistry(writeables);
6262
}
6363

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/plugin/DataNodeRequestSerializationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected Writeable.Reader<DataNodeRequest> instanceReader() {
6060
protected NamedWriteableRegistry getNamedWriteableRegistry() {
6161
List<NamedWriteableRegistry.Entry> writeables = new ArrayList<>();
6262
writeables.addAll(new SearchModule(Settings.EMPTY, List.of()).getNamedWriteables());
63-
writeables.addAll(new EsqlPlugin().getNamedWriteables());
63+
writeables.addAll(new EsqlPlugin(Settings.EMPTY).getNamedWriteables());
6464
return new NamedWriteableRegistry(writeables);
6565
}
6666

0 commit comments

Comments
 (0)