mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-10-11 12:59:06 +00:00
Adjust test to slower performance of build machines in Jenkins
Signed-off-by: Peter-Josef Meisch <pj.meisch@sothawo.com> (cherry picked from commit 5529af8f768f12addbba1d2ebea7cee55916dac8) (cherry picked from commit 3fca4e8be36c2f660b4bbe0dcda6a4d7879fef17)
This commit is contained in:
parent
430527504e
commit
48855e75df
@ -33,7 +33,7 @@ class CriteriaTest {
|
|||||||
void shouldNotSlowDownOnCalculatingHashcodeForLongCriteriaChains() {
|
void shouldNotSlowDownOnCalculatingHashcodeForLongCriteriaChains() {
|
||||||
assertTimeoutPreemptively(Duration.of(1, ChronoUnit.SECONDS), () -> {
|
assertTimeoutPreemptively(Duration.of(1, ChronoUnit.SECONDS), () -> {
|
||||||
var criteria = new Criteria();
|
var criteria = new Criteria();
|
||||||
var size = 5000;
|
var size = 1000;
|
||||||
for (int i = 1; i <= size; i++) {
|
for (int i = 1; i <= size; i++) {
|
||||||
criteria = criteria.or("field-" + i).contains("value-" + i);
|
criteria = criteria.or("field-" + i).contains("value-" + i);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user