From 68730dc0e6d471e3435e0a499a7fcb0ed53e3264 Mon Sep 17 00:00:00 2001 From: Tomas Della Vedova Date: Thu, 23 Jan 2020 09:24:03 +0100 Subject: [PATCH] Renamed log skip function (#1061) --- test/integration/test-runner.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/test-runner.js b/test/integration/test-runner.js index 1a4184e7f..c0fca2250 100644 --- a/test/integration/test-runner.js +++ b/test/integration/test-runner.js @@ -219,7 +219,7 @@ function build (opts = {}) { // we should skip the entire test file const skip = getSkip(setup) || getSkip(teardown) if (skip && shouldSkip(esVersion, skip)) { - skip(skip) + logSkip(skip) return } @@ -444,7 +444,7 @@ function build (opts = {}) { for (const action of actions) { if (action.skip) { if (shouldSkip(esVersion, action.skip)) { - skip(fillStashedValues(action.skip)) + logSkip(fillStashedValues(action.skip)) break } } @@ -800,13 +800,13 @@ function getRandomInt (min, max) { * @param {object} the actions * @returns {TestRunner} */ -function skip (action) { +function logSkip (action) { if (action.reason && action.version) { - // tap.comment(`Skip: ${action.reason} (${action.version})`) + console.log(`Skip: ${action.reason} (${action.version})`) } else if (action.features) { - // tap.comment(`Skip: ${JSON.stringify(action.features)})`) + console.log(`Skip: ${JSON.stringify(action.features)})`) } else { - // tap.comment('Skipped') + console.log('Skipped') } }