Skip to content

Commit ac54650

Browse files
committed
Fix typo
1 parent b7692b8 commit ac54650

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/inference/rerank/RerankOperatorTests.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class RerankOperatorTests extends InferenceOperatorTestCase<RankedDocsRes
2929
private static final String SIMPLE_INFERENCE_ID = "test_reranker";
3030
private static final String SIMPLE_QUERY = "query text";
3131
private int inputChannel;
32-
private int scroreChannel;
32+
private int scoreChannel;
3333

3434
@Override
3535
protected Operator.OperatorFactory simple(SimpleOptions options) {
@@ -38,16 +38,16 @@ protected Operator.OperatorFactory simple(SimpleOptions options) {
3838
SIMPLE_INFERENCE_ID,
3939
SIMPLE_QUERY,
4040
evaluatorFactory(inputChannel),
41-
scroreChannel
41+
scoreChannel
4242
);
4343
}
4444

4545
@Before
4646
public void initRerankChannels() {
4747
inputChannel = between(0, inputsCount - 1);
48-
scroreChannel = between(0, inputsCount - 1);
49-
if (scroreChannel == inputChannel) {
50-
scroreChannel++;
48+
scoreChannel = between(0, inputsCount - 1);
49+
if (scoreChannel == inputChannel) {
50+
scoreChannel++;
5151
}
5252
}
5353

@@ -60,11 +60,11 @@ protected void assertSimpleOutput(List<Page> inputPages, List<Page> resultPages)
6060
Page resultPage = resultPages.get(pageId);
6161

6262
assertThat(resultPage.getPositionCount(), equalTo(inputPage.getPositionCount()));
63-
assertThat(resultPage.getBlockCount(), equalTo(Integer.max(scroreChannel + 1, inputPage.getBlockCount())));
63+
assertThat(resultPage.getBlockCount(), equalTo(Integer.max(scoreChannel + 1, inputPage.getBlockCount())));
6464

6565
for (int channel = 0; channel < inputPage.getBlockCount(); channel++) {
6666
Block resultBlock = resultPage.getBlock(channel);
67-
if (channel == scroreChannel) {
67+
if (channel == scoreChannel) {
6868
assertExpectedScore(inputPage.getBlock(inputChannel), (DoubleBlock) resultBlock);
6969
} else {
7070
Block inputBlock = inputPage.getBlock(channel);
@@ -98,7 +98,7 @@ protected Matcher<String> expectedToStringOfSimple() {
9898
+ "], query=["
9999
+ SIMPLE_QUERY
100100
+ "], score_channel=["
101-
+ scroreChannel
101+
+ scoreChannel
102102
+ "]]"
103103
);
104104
}

0 commit comments

Comments
 (0)