Skip to content

Commit

Permalink
Do not cleanup twice after tests
Browse files Browse the repository at this point in the history
Fixes #437
  • Loading branch information
mjackson committed Feb 26, 2017
1 parent 1ecaa72 commit c97ec68
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/__tests__/TestSequences/execSteps.js
@@ -1,9 +1,12 @@
const execSteps = (steps, history, done) => {
let index = 0, unlisten
let index = 0, unlisten, cleanedUp = false

const cleanup = (...args) => {
unlisten()
done(...args)
if (!cleanedUp) {
cleanedUp = true
unlisten()
done(...args)
}
}

const execNextStep = (...args) => {
Expand Down

0 comments on commit c97ec68

Please sign in to comment.