Skip to content

feat: add wait option to this.retries for delay between attempts#5980

Open
mostafaNazari702 wants to merge 2 commits into
mochajs:mainfrom
mostafaNazari702:feat/2264-retries-wait
Open

feat: add wait option to this.retries for delay between attempts#5980
mostafaNazari702 wants to merge 2 commits into
mochajs:mainfrom
mostafaNazari702:feat/2264-retries-wait

Conversation

@mostafaNazari702

Copy link
Copy Markdown
Contributor

PR Checklist

Overview

Adds the green-lit in #2264 (comment): a wait option on this.retries(n, options) to delay each retry attempt by a fixed number of milliseconds or an ms-shorthand string.

@codecov

codecov Bot commented May 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.14286% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.00%. Comparing base (6695fba) to head (57eb266).

Files with missing lines Patch % Lines
lib/test.mjs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5980      +/-   ##
==========================================
+ Coverage   80.89%   81.00%   +0.11%     
==========================================
  Files          64       64              
  Lines        4602     4634      +32     
  Branches      976     1004      +28     
==========================================
+ Hits         3723     3754      +31     
- Misses        879      880       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚀 Feature: Retry logic should accommodate a timeout between retries

1 participant