mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
💄 Satisfy linter requirements
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user