From 9cd98b69ee15328d4614cacb7a1cb02475ffddee Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Mon, 8 Oct 2018 16:20:09 +0200 Subject: [PATCH] Feature 3.4/log timestamp on test start (#6761) --- js/client/modules/@arangodb/process-utils.js | 4 ++-- js/client/modules/@arangodb/test-utils.js | 2 +- js/common/modules/jsunity.js | 2 +- js/common/modules/jsunity/jsunity.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/client/modules/@arangodb/process-utils.js b/js/client/modules/@arangodb/process-utils.js index 9c049f115f..78a21d5b97 100644 --- a/js/client/modules/@arangodb/process-utils.js +++ b/js/client/modules/@arangodb/process-utils.js @@ -805,10 +805,10 @@ function shutdownArangod (arangod, options, forceTerminate) { } else { const requestOptions = makeAuthorizationHeaders(options); requestOptions.method = 'DELETE'; - print(arangod.url + '/_admin/shutdown'); + print(Date() + ' ' + arangod.url + '/_admin/shutdown'); const reply = download(arangod.url + '/_admin/shutdown', '', requestOptions); if (options.extremeVerbosity) { - print('Shutdown response: ' + JSON.stringify(reply)); + print(Date() + ' Shutdown response: ' + JSON.stringify(reply)); } } } else { diff --git a/js/client/modules/@arangodb/test-utils.js b/js/client/modules/@arangodb/test-utils.js index 2f49258fb2..8007ed497d 100644 --- a/js/client/modules/@arangodb/test-utils.js +++ b/js/client/modules/@arangodb/test-utils.js @@ -292,7 +292,7 @@ function performTests (options, testList, testname, runFn, serverOptions, startS print(RED + 'No testcase matched the filter.' + RESET); } - print('Shutting down...'); + print(Date() + ' Shutting down...'); if (startStopHandlers !== undefined && startStopHandlers.hasOwnProperty('preStop')) { customInstanceInfos['preStop'] = startStopHandlers.preStop(options, serverOptions, diff --git a/js/common/modules/jsunity.js b/js/common/modules/jsunity.js index 51a3b0962a..48a8602d26 100644 --- a/js/common/modules/jsunity.js +++ b/js/common/modules/jsunity.js @@ -47,7 +47,7 @@ function setTestFilter(filter) { } jsUnity.results.begin = function (total, suiteName) { - print('Running ' + (suiteName || 'unnamed test suite')); + print(Date() + ' Running ' + (suiteName || 'unnamed test suite')); print(' ' + total + ' test(s) found'); print(); RESULTS = {}; diff --git a/js/common/modules/jsunity/jsunity.js b/js/common/modules/jsunity/jsunity.js index c08e2e38be..2c65b985b5 100644 --- a/js/common/modules/jsunity/jsunity.js +++ b/js/common/modules/jsunity/jsunity.js @@ -367,7 +367,7 @@ var jsUnity = exports.jsUnity = (function () { jsUnity.tap.write("# " + suiteName); jsUnity.tap.write("1.." + total); - jsUnity.log.info("Running " + jsUnity.log.info(Date() + " Running " + (suiteName || "unnamed test suite")); jsUnity.log.info(plural(total, "test") + " found"); },