From 3ed043502d5062579a3dd83f40aebdc42fc7182d Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 28 Jul 2021 21:38:02 +0800 Subject: [PATCH] docs: add code snippet for admin cert modification (#257) (#258) Signed-off-by: Thomas Co-authored-by: ankitm123 --- app/sync.ts | 2 +- client/e2e-test/specs/dashboard/dashboard.test.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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); }); });