Skip to content

Commit

Permalink
fix: fix race in uvu runner (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias authored May 12, 2021
1 parent 7419f7e commit a01f815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runner-uvu.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ class UvuRunner extends Runner {
* @param {string} file
*/
async runTests(page, file) {
await super.runTests(page, file)

let total = 0
let passed = 0

Expand All @@ -31,6 +29,8 @@ class UvuRunner extends Runner {
await page.evaluate(run(total !== passed))
}
})

await super.runTests(page, file)
}

/**
Expand Down

0 comments on commit a01f815

Please sign in to comment.