Skip to content

Commit 82c70ac

Browse files
authored
Rename test utility methods (#120213) (#120227)
1 parent 1ea495e commit 82c70ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,15 +1232,15 @@ public static Long randomLongOrNull() {
12321232
return randomBoolean() ? null : randomLong();
12331233
}
12341234

1235-
public static Long randomPositiveLongOrNull() {
1235+
public static Long randomNonNegativeLongOrNull() {
12361236
return randomBoolean() ? null : randomNonNegativeLong();
12371237
}
12381238

12391239
public static Integer randomIntOrNull() {
12401240
return randomBoolean() ? null : randomInt();
12411241
}
12421242

1243-
public static Integer randomPositiveIntOrNull() {
1243+
public static Integer randomNonNegativeIntOrNull() {
12441244
return randomBoolean() ? null : randomNonNegativeInt();
12451245
}
12461246

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/inference/action/UnifiedCompletionRequestTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public static UnifiedCompletionRequest randomUnifiedCompletionRequest() {
183183
return new UnifiedCompletionRequest(
184184
randomList(5, UnifiedCompletionRequestTests::randomMessage),
185185
randomAlphaOfLengthOrNull(10),
186-
randomPositiveLongOrNull(),
186+
randomNonNegativeLongOrNull(),
187187
randomStopOrNull(),
188188
randomFloatOrNull(),
189189
randomToolChoiceOrNull(),

0 commit comments

Comments
 (0)