diff --git a/features/step_definitions/matching.js b/features/step_definitions/matching.js index 8635ba997..61514c8a4 100644 --- a/features/step_definitions/matching.js +++ b/features/step_definitions/matching.js @@ -175,8 +175,7 @@ module.exports = function () { if (headers.has('matchings')) { if (subMatchings.length != row.matchings.split(',').length) { - ok = false; - cb(new Error('*** table matchings and api response are not the same')); + return cb(new Error('*** table matchings and api response are not the same')); } row.matchings.split(',').forEach((sub, si) => {