Skip to content

Commit

Permalink
Fixed forgotten test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
afoucret committed Jan 16, 2024
1 parent bb33881 commit 3917790
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,15 @@ protected LearningToRankRescorerBuilder createTestInstance() {

@Override
protected LearningToRankRescorerBuilder createXContextTestInstance(XContentType xContentType) {
return new LearningToRankRescorerBuilder(randomAlphaOfLength(10), randomBoolean() ? randomParams() : null, learningToRankService);
return new LearningToRankRescorerBuilder(
randomAlphaOfLength(10),
randomBoolean() ? randomParams() : null,
learningToRankService
).windowSize(randomIntBetween(1, 10000));
}

@Override
protected LearningToRankRescorerBuilder mutateInstance(LearningToRankRescorerBuilder instance) throws IOException {

int i = randomInt(4);
return switch (i) {
case 0 -> new LearningToRankRescorerBuilder(
Expand Down

0 comments on commit 3917790

Please sign in to comment.