File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/inference Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 4040import org .junit .After ;
4141import org .junit .Before ;
4242
43+ import java .util .HashSet ;
4344import java .util .function .BiFunction ;
4445import java .util .function .Consumer ;
4546
@@ -146,7 +147,8 @@ private void runWithRandomDelay(Runnable runnable) {
146147 };
147148
148149 ClusterService clusterService = mock (ClusterService .class );
149- when (clusterService .getClusterSettings ()).thenReturn (mock (ClusterSettings .class ));
150+ ClusterSettings clusterSettings = new ClusterSettings (Settings .EMPTY , new HashSet <>(InferenceSettings .getSettings ()));
151+ when (clusterService .getClusterSettings ()).thenReturn (clusterSettings );
150152 when (clusterService .getSettings ()).thenReturn (Settings .EMPTY );
151153
152154 return new InferenceService (mockClient , clusterService );
You can’t perform that action at this time.
0 commit comments