Skip to content

Commit c928c2f

Browse files
committed
ESOCKETTIMEDOUT is a timeout
1 parent 3b9dbf5 commit c928c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('Crawler', function() {
6666
if (error || (statusCode !== 200 && statusCode !== 429)) {
6767
var msg = util.format('%s ON %s CONTENT %s LINKS TO %s', error || statusCode, fromUrl, content, toUrl);
6868

69-
var timedOut = error && error.code === 'ETIMEDOUT';
69+
var timedOut = error && (error.code === 'ETIMEDOUT' || error.code === 'ESOCKETTIMEDOUT');
7070
var isGithubEditLink = isExternal && toUrl.indexOf('https://github.com/spark/docs/tree/master/src/content') === 0;
7171
if ((isExternal && Math.floor(statusCode / 100) === 5) ||
7272
(isExternal && timedOut) ||

0 commit comments

Comments
 (0)