💄 Satisfy linter requirements

This commit is contained in:
Antonio Scandurra
2015-10-08 14:07:28 +02:00
parent 9ac4034135
commit 24365b95df

View File

@@ -1,12 +1,14 @@
var parentProcessId = process.argv[2];
var timeoutInMinutes = process.argv[3];
var timeoutInMilliseconds = timeoutInMinutes * 1000 * 60
'use strict'
function exitTestRunner() {
process.kill(parentProcessId, "SIGINT");
var errorMessage = "The test suite has timed out because it has been running";
errorMessage += " for more than " + timeoutInMinutes + " minutes.";
console.log(errorMessage);
let parentProcessId = process.argv[2]
let timeoutInMinutes = process.argv[3]
let timeoutInMilliseconds = timeoutInMinutes * 1000 * 60
function exitTestRunner () {
process.kill(parentProcessId, 'SIGINT')
let errorMessage = 'The test suite has timed out because it has been running'
errorMessage += ' for more than ' + timeoutInMinutes + ' minutes.'
console.log(errorMessage)
}
setTimeout(exitTestRunner, timeoutInMilliseconds);
setTimeout(exitTestRunner, timeoutInMilliseconds)