Skip to content

Commit a7c50ac

Browse files
author
DavertMik
committed
added BC compatibility for disableRetryFailedStep
1 parent 6fe0faf commit a7c50ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/plugin/retryFailedStep.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ module.exports = config => {
106106
})
107107

108108
event.dispatcher.on(event.test.before, test => {
109-
if (test.opts.disableRetryFailedStep) {
109+
// pass disableRetryFailedStep is a preferred way to disable retries
110+
// test.disableRetryFailedStep is used for backward compatibility
111+
if (test.opts.disableRetryFailedStep || test.disableRetryFailedStep) {
110112
store.autoRetries = false
111113
return // disable retry when a test is not active
112114
}

0 commit comments

Comments
 (0)