Skip to content

Commit 484d85f

Browse files
committed
randomNonNegativeLong
1 parent 095f377 commit 484d85f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/health/node/HealthInfoTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static RepositoriesHealthInfo randomRepoHealthInfo() {
8686
}
8787

8888
private static FileSettingsHealthInfo mutateFileSettingsHealthInfo(FileSettingsHealthInfo original) {
89-
long changeCount = randomValueOtherThan(original.changeCount(), ESTestCase::randomLong);
89+
long changeCount = randomValueOtherThan(original.changeCount(), ESTestCase::randomNonNegativeLong);
9090
long failureStreak = randomLongBetween(0, changeCount);
9191
String mostRecentFailure;
9292
if (failureStreak == 0) {

0 commit comments

Comments
 (0)