Skip to content

test: Fix flaky TestDo_rateLimit_abuseRateLimitError_xRateLimitReset#4057

Merged
gmlewis merged 1 commit intogoogle:masterfrom
alexandear-org:refactor/synctest
Mar 2, 2026
Merged

test: Fix flaky TestDo_rateLimit_abuseRateLimitError_xRateLimitReset#4057
gmlewis merged 1 commit intogoogle:masterfrom
alexandear-org:refactor/synctest

Conversation

@alexandear
Copy link
Contributor

@alexandear alexandear commented Mar 2, 2026

Refactor rateLimit tests with testing/synctest.
This helps eliminate workaround want-got > 1*time.Second in comparisons and fix flaky TestDo_rateLimit_abuseRateLimitError_xRateLimitReset.

Fixes #3987

@alexandear alexandear force-pushed the refactor/synctest branch 7 times, most recently from b722d1b to a31d45d Compare March 2, 2026 12:28
@alexandear alexandear changed the title test: Use testing/synctest to fix flakiness fix: Flaky TestDo_rateLimit_abuseRateLimitError_xRateLimitReset Mar 2, 2026
@alexandear alexandear changed the title fix: Flaky TestDo_rateLimit_abuseRateLimitError_xRateLimitReset test: Fix flaky TestDo_rateLimit_abuseRateLimitError_xRateLimitReset Mar 2, 2026
@codecov
Copy link

codecov bot commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.09%. Comparing base (a3c81cd) to head (fd7a4b1).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4057   +/-   ##
=======================================
  Coverage   94.09%   94.09%           
=======================================
  Files         208      208           
  Lines       19248    19248           
=======================================
  Hits        18112    18112           
  Misses        938      938           
  Partials      198      198           

☔ 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.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @alexandear!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @zyfy29 - @Not-Dhananjay-Mishra - @munlicode

Copy link
Contributor

@Not-Dhananjay-Mishra Not-Dhananjay-Mishra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gmlewis
Copy link
Collaborator

gmlewis commented Mar 2, 2026

Thank you, @Not-Dhananjay-Mishra!
Merging.

@gmlewis gmlewis merged commit 1b92411 into google:master Mar 2, 2026
8 checks passed
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.

Fix flaky test TestDo_rateLimit_abuseRateLimitError_xRateLimitReset

3 participants