Skip to content

fix: Comparison of durations in AbuseRateLimitError.Is#4292

Merged
gmlewis merged 1 commit into
google:masterfrom
alexandear-org:fix/abuse-rate-limit-error-is
Jun 11, 2026
Merged

fix: Comparison of durations in AbuseRateLimitError.Is#4292
gmlewis merged 1 commit into
google:masterfrom
alexandear-org:fix/abuse-rate-limit-error-is

Conversation

@alexandear

Copy link
Copy Markdown
Contributor

This PR fixes the comparison of RetryAfter durations in the AbuseRateLimitError.Is. Two errors with the same RetryAfter value but distinct pointers should compare equal.

@gmlewis gmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

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

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.49%. Comparing base (f53fbae) to head (7fe27b5).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4292   +/-   ##
=======================================
  Coverage   97.49%   97.49%           
=======================================
  Files         192      192           
  Lines       19256    19260    +4     
=======================================
+ Hits        18774    18778    +4     
  Misses        267      267           
  Partials      215      215           

☔ View full report in Codecov by Harness.
📢 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.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@gmlewis

gmlewis commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

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

@gmlewis gmlewis merged commit b743e86 into google:master Jun 11, 2026
14 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.

3 participants