Skip to content

Commit

Permalink
fix: add check on test can be undefined
Browse files Browse the repository at this point in the history
Investigation are explain on this issue #4358
  • Loading branch information
Horsty80 authored May 23, 2024
1 parent 0e1b86a commit 3c009e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/listener/retry.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = function () {
if (!retryConfig) return;

if (Number.isInteger(+retryConfig)) {
if (test.retries() === -1) test.retries(retryConfig);
if (test && test.retries() && test.retries() === -1) test.retries(retryConfig);
return;
}

Expand Down

0 comments on commit 3c009e0

Please sign in to comment.