From 24365b95df18b79fd8f995007a5d2735fecae424 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 8 Oct 2015 14:07:28 +0200 Subject: [PATCH] :lipstick: Satisfy linter requirements --- src/timeout-cop.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/timeout-cop.js b/src/timeout-cop.js index c684540f2..228a011bb 100644 --- a/src/timeout-cop.js +++ b/src/timeout-cop.js @@ -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)