Fixed issue where promise chain was broken. (#70004)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
John Dorlus 2020-06-26 11:59:50 -04:00 committed by GitHub
parent eea33a0db2
commit 4845bef181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,9 +31,9 @@ export default function ({ getService, getPageObjects }) {
it('create new rollup job', async () => {
const interval = '1000ms';
pastDates.map(async (day) => {
for (const day of pastDates) {
await es.index(mockIndices(day, rollupSourceDataPrepend));
});
}
await PageObjects.common.navigateToApp('rollupJob');
await PageObjects.rollup.createNewRollUpJob(