Skip to content

Commit 3c96bb5

Browse files
Fixing mock registry
1 parent e28d514 commit 3c96bb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/elastic/authorization/ElasticInferenceServiceAuthorizationHandlerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void testSecondAuthResultRevokesAuthorization() throws Exception {
9696
handlerRef.set(
9797
new ElasticInferenceServiceAuthorizationHandler(
9898
createWithEmptySettings(taskQueue.getThreadPool()),
99-
modelRegistry,
99+
mockModelRegistry(taskQueue.getThreadPool()),
100100
requestHandler,
101101
initDefaultEndpoints(),
102102
EnumSet.of(TaskType.SPARSE_EMBEDDING, TaskType.CHAT_COMPLETION),

0 commit comments

Comments
 (0)