File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 88package org .elasticsearch .xpack .esql .action ;
99
1010import org .elasticsearch .common .io .stream .NamedWriteableRegistry ;
11+ import org .elasticsearch .common .settings .Settings ;
1112import org .elasticsearch .compute .operator .Operator ;
1213import org .elasticsearch .compute .operator .topn .TopNOperatorStatus ;
1314import org .elasticsearch .test .ESTestCase ;
1819public 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 (),
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments