mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
[TEST] fix method clash due to randomTimeValue addition to ESTestCase
Original commit: elastic/x-pack-elasticsearch@cbcdfa641b
This commit is contained in:
parent
ffc359b91d
commit
90a11b20e6
@ -51,7 +51,7 @@ public class IntervalScheduleTests extends ESTestCase {
|
||||
|
||||
@Test
|
||||
public void testParse_String() throws Exception {
|
||||
IntervalSchedule.Interval value = randomTimeValue();
|
||||
IntervalSchedule.Interval value = randomTimeInterval();
|
||||
XContentBuilder builder = jsonBuilder().value(value);
|
||||
BytesReference bytes = builder.bytes();
|
||||
XContentParser parser = JsonXContent.jsonXContent.createParser(bytes);
|
||||
@ -79,7 +79,7 @@ public class IntervalScheduleTests extends ESTestCase {
|
||||
new IntervalSchedule.Parser().parse(parser);
|
||||
}
|
||||
|
||||
private static IntervalSchedule.Interval randomTimeValue() {
|
||||
private static IntervalSchedule.Interval randomTimeInterval() {
|
||||
IntervalSchedule.Interval.Unit unit = IntervalSchedule.Interval.Unit.values()[randomIntBetween(0, IntervalSchedule.Interval.Unit.values().length - 1)];
|
||||
return new IntervalSchedule.Interval(randomIntBetween(1, 100), unit);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user