Skip to content

Commit

Permalink
Update lib/effects.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik authored Jan 14, 2025
1 parent bd52bff commit 9c29b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function hopeThat(callback) {
result = false
const msg = err.inspect ? err.inspect() : err.toString()
debug(`Unsuccessful assertion > ${msg}`)
event.dispatcher.on(event.test.finished, test => {
event.dispatcher.once(event.test.finished, test => {
test.notes.push({ type: 'conditionalError', text: msg })
})
recorder.session.restore(sessionName)
Expand Down

0 comments on commit 9c29b6b

Please sign in to comment.