mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
[TEST] adjusted EsTestCase#randomPositiveLong
This commit is contained in:
parent
746632fcf9
commit
7c03f65c36
@ -303,11 +303,11 @@ public abstract class ESTestCase extends LuceneTestCase {
|
||||
}
|
||||
|
||||
public static long randomPositiveLong() {
|
||||
long positiveLong = randomLong();
|
||||
while (positiveLong == Long.MIN_VALUE) {
|
||||
positiveLong = randomLong();
|
||||
}
|
||||
return Math.abs(positiveLong);
|
||||
long randomLong;
|
||||
do {
|
||||
randomLong = randomLong();
|
||||
} while (randomLong == Long.MIN_VALUE);
|
||||
return Math.abs(randomLong);
|
||||
}
|
||||
|
||||
public static float randomFloat() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user