Commit 0d0c6e4
Ensure random timestamps are within search boundary (elastic#38753)
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#34762
"Forward-port" of 368c6f2 (wasn't
merged into master for some reason)1 parent 54c2aec commit 0d0c6e4
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 | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
456 | 455 | | |
457 | 456 | | |
458 | 457 | | |
| |||
468 | 467 | | |
469 | 468 | | |
470 | 469 | | |
471 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
472 | 473 | | |
473 | 474 | | |
474 | 475 | | |
| |||
0 commit comments