Comparing version 3.2.1 to 3.2.2
@@ -68,3 +68,3 @@ "use strict"; | ||
body = (_a.sent()).body; | ||
if (!isTestInFinalState(body)) return [3 /*break*/, 4]; | ||
if (!isTestInFinalState(body, testDef.type)) return [3 /*break*/, 4]; | ||
clearInterval(intervalId); | ||
@@ -268,3 +268,8 @@ if (!(testDef.type === Loadmill.TYPES.TEST_PLAN)) return [3 /*break*/, 3]; | ||
}; | ||
function isTestInFinalState(body) { | ||
function isTestInFinalState(body, runType) { | ||
if (runType === Loadmill.TYPES.TEST_PLAN) { | ||
if (body.testSuitesRuns.some(function (suite) { return suite.status === "RUNNING"; })) { | ||
return false; | ||
} | ||
} | ||
var trialResult = body.trialResult, result = body.result, status = body.status; | ||
@@ -271,0 +276,0 @@ return ((result || trialResult === false) || // load tests |
@@ -92,3 +92,3 @@ "use strict"; | ||
logger.log(""); | ||
logger.error("\u23F9 " + msg + "."); | ||
logger.error("\u270B " + msg + "."); | ||
if (bail) { | ||
@@ -95,0 +95,0 @@ process.exit(1); |
{ | ||
"name": "loadmill", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "A node.js module for running load tests and functional tests on loadmill.com", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -59,3 +59,3 @@ import './polyfills' | ||
if (isTestInFinalState(body)) { | ||
if (isTestInFinalState(body, testDef.type)) { | ||
clearInterval(intervalId); | ||
@@ -261,3 +261,8 @@ | ||
} | ||
function isTestInFinalState(body) { | ||
function isTestInFinalState(body, runType) { | ||
if (runType === Loadmill.TYPES.TEST_PLAN) { | ||
if (body.testSuitesRuns.some(suite => suite.status === "RUNNING")) { | ||
return false; | ||
} | ||
} | ||
const { trialResult, result, status } = body; | ||
@@ -264,0 +269,0 @@ return ( |
@@ -133,3 +133,3 @@ import * as Loadmill from './index'; | ||
logger.log(""); | ||
logger.error(`⏹ ${msg}.`); | ||
logger.error(`✋ ${msg}.`); | ||
@@ -136,0 +136,0 @@ if (bail) { |
144614
2845