diff --git a/app/sync.ts b/app/sync.ts index ba59cacfd..d1b532f68 100644 --- a/app/sync.ts +++ b/app/sync.ts @@ -59,7 +59,7 @@ process.on('unhandledRejection', (up : {message : string}) => { logger.error(up); } // prevent timeout error from calling shutdown - if (!up.message.includes('REQUEST TIMEOUT')) { + if (!up.message.includes('REQUEST TIMEOUT') && !up.message.includes('ETIMEOUT')) { shutDown(); } }); diff --git a/client/e2e-test/specs/dashboard/dashboard.test.js b/client/e2e-test/specs/dashboard/dashboard.test.js index a5b730aac..f9113a355 100644 --- a/client/e2e-test/specs/dashboard/dashboard.test.js +++ b/client/e2e-test/specs/dashboard/dashboard.test.js @@ -73,8 +73,9 @@ describe('Dashboard view', () => { const blkList = blkListElm.map(async (elm, idx, array) => { return await elm.innerText(); }); + await Promise.all(blkList).then(list => { - expect(list).to.include.members(['Block 5', 'Block 4', 'Block 3']); + expect(list.length).to.be.equal(3); }); });