Skip to content

Commit 8332e8d

Browse files
Fix code styles by running spotlessApply
1 parent 34dd779 commit 8332e8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/integration/SemanticTextIndexVersionIT.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.elasticsearch.xpack.inference.Utils;
2727
import org.elasticsearch.xpack.inference.mock.TestSparseInferenceServiceExtension;
2828
import org.elasticsearch.xpack.inference.queries.SemanticQueryBuilder;
29+
import org.elasticsearch.xpack.inference.registry.ModelRegistry;
2930
import org.junit.Before;
3031

3132
import java.io.IOException;
@@ -49,7 +50,8 @@ public class SemanticTextIndexVersionIT extends ESIntegTestCase {
4950

5051
@Before
5152
public void setup() throws Exception {
52-
Utils.storeSparseModel(client());
53+
ModelRegistry modelRegistry = internalCluster().getCurrentMasterNodeInstance(ModelRegistry.class);
54+
Utils.storeSparseModel(modelRegistry);
5355
availableVersions = IndexVersionUtils.allReleasedVersions()
5456
.stream()
5557
.filter(indexVersion -> indexVersion.after(SEMANTIC_TEXT_INTRODUCED_VERSION))

0 commit comments

Comments
 (0)