Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: prevent ETIMEOUT error from shuting down explorer #258

Merged
merged 1 commit into from Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/sync.ts
Expand Up @@ -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();
}
});
Expand Down
3 changes: 2 additions & 1 deletion client/e2e-test/specs/dashboard/dashboard.test.js
Expand Up @@ -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);
});
});

Expand Down