Commit 368c6f2
committed
[TEST] Ensure random timestamps are within search boundary
The random timestamps were landing too close to the current time,
so an unlucky rollup interval would round such that the doc wasn't
included in the search range (and thus not "rolled up") which
would then fail the test.
The fix is to make sure the timestamp of all docs is sufficiently behind
'now' that the possible rounding intervals will always include them.
Unmutes testRandomizedDateHisto, closes elastic#347621 parent fd5914e commit 368c6f2
File tree
1 file changed
+3
-2
lines changed- x-pack/plugin/rollup/src/test/java/org/elasticsearch/xpack/rollup/job
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | 424 | | |
426 | 425 | | |
427 | 426 | | |
| |||
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
440 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
| |||
0 commit comments