We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb5e9d6 commit 7822e45Copy full SHA for 7822e45
x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ml/calendars/ScheduledEventTests.java
@@ -207,7 +207,7 @@ private void validateScheduledEventSuccessfulBuild(
207
String description = randomAlphaOfLength(10);
208
String calendarId = randomAlphaOfLength(10);
209
Instant startTime = Instant.ofEpochMilli(Instant.now().toEpochMilli());
210
- Instant endTime = startTime.plusSeconds(randomInt(3600));
+ Instant endTime = startTime.plusSeconds(randomIntBetween(1, 3600));
211
212
ScheduledEvent.Builder builder = new ScheduledEvent.Builder().description(description)
213
.calendarId(calendarId)
0 commit comments