From 7b11152a128525644208b317ed073c2a38353062 Mon Sep 17 00:00:00 2001 From: Tomas Della Vedova Date: Wed, 23 Sep 2020 12:38:45 +0200 Subject: [PATCH] Fixed integration test runner (#1318) --- test/integration/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/integration/index.js b/test/integration/index.js index 1451c87e4..cabec784f 100644 --- a/test/integration/index.js +++ b/test/integration/index.js @@ -19,6 +19,11 @@ 'use strict' +process.on('unhandledRejection', function (err) { + console.error(err) + process.exit(1) +}) + const { writeFileSync, readFileSync, accessSync, mkdirSync, readdirSync, statSync } = require('fs') const { join, sep } = require('path') const yaml = require('js-yaml') @@ -203,8 +208,11 @@ async function start ({ client, isXPack }) { const tests = data .split('\n---\n') .map(s => s.trim()) + // empty strings .filter(Boolean) .map(parse) + // null values + .filter(Boolean) // get setup and teardown if present var setupTest = null