fix assertEventually logic with async indexing
@@ -177,7 +177,7 @@ public abstract class ElasticAbstractQueryTest extends AbstractQueryTest {
protected void assertEventually(Runnable r) {
ElasticTestUtils.assertEventually(r,
- ((useAsyncIndexing() ? DEFAULT_ASYNC_INDEXING_TIME_IN_SECONDS : 0) + BULK_FLUSH_INTERVAL_MS_DEFAULT) * 5);
+ ((useAsyncIndexing() ? DEFAULT_ASYNC_INDEXING_TIME_IN_SECONDS * 1000L : 0) + BULK_FLUSH_INTERVAL_MS_DEFAULT) * 5);
}
protected IndexDefinitionBuilder createIndex(String... propNames) {
