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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
John Dorlus 2020-06-26 15:02:28 -04:00 committed by GitHub
parent 775cd0b42a
commit 63f9a114d7
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(