Skip to content

Commit 0573a3f

Browse files
committed
fixup
1 parent 1924f9c commit 0573a3f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

server/src/test/java/org/elasticsearch/search/dfs/DfsPhaseTests.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ public void testNumCandidatesExceedsMax() {
125125
return mockIndexShard;
126126
});
127127

128-
// 构造超过最大值的查询参数
129128
KnnSearchBuilder queryBuilder = new KnnSearchBuilder(
130129
"float_vector",
131130
new float[] { 0, 0, 0 },
@@ -140,7 +139,6 @@ public void testNumCandidatesExceedsMax() {
140139
when(searchRequest.source()).thenReturn(source);
141140
when(context.request()).thenReturn(searchRequest);
142141

143-
// 验证异常抛出
144142
IllegalArgumentException e = expectThrows(IllegalArgumentException.class, () -> DfsPhase.executeKnnVectorQuery(context));
145143
assertEquals("[num_candidates] cannot exceed [100]", e.getMessage());
146144

0 commit comments

Comments
 (0)