Skip to content

Commit

Permalink
chore: add throw in catch block of execute; fix for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Perrotte committed Nov 7, 2019
1 parent 5b7643a commit fb75d36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/execute.js
Expand Up @@ -46,7 +46,7 @@ module.exports = async function execute (latest = false) {

try {
const newResults = {}
for (let x = 0; x < scenarios.length; ++x) {
for (let x = 0; x < scenarios.length; x++) {
const scenario = scenarios[x]

const scenarioKey = scenario.name.toLowerCase()
Expand All @@ -55,7 +55,7 @@ module.exports = async function execute (latest = false) {
}

log.info('scenario', scenario.name)
for (let i = 0; i < fixtures.length; ++i) {
for (let i = 0; i < fixtures.length; i++) {
const fixture = fixtures[i]

log.info('fixture', fixture)
Expand Down Expand Up @@ -84,5 +84,6 @@ module.exports = async function execute (latest = false) {
}
} catch (e) {
log.error(e)
throw e
}
}

0 comments on commit fb75d36

Please sign in to comment.