Skip to content

Commit 2ecb3d5

Browse files
author
Amoki
committed
fix timeout test
1 parent 5443ded commit 2ecb3d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/helpers/hydrater.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ module.exports = function(hydraterFunction, logger, errLogger) {
8181
});
8282

8383
child.on('exit', function(errCode) {
84-
if(errCode !== 0) {
84+
if(errCode !== 0 && errCode !== 143) {
8585
cleaner(new HydrationError("Child exiting with err code: " + errCode + stdout + stderr));
8686
}
8787
});
@@ -128,7 +128,7 @@ module.exports = function(hydraterFunction, logger, errLogger) {
128128
child.kill('SIGKILL');
129129
}
130130
cleaner(null, changes);
131-
}, 10 * 1000);
131+
}, process.env.TIMEOUT / 6 || 10 * 1000);
132132
}
133133
}, process.env.TIMEOUT || 60 * 1000);
134134
},

0 commit comments

Comments
 (0)