Skip to content

test(foundation): add overflow tests for Backoff#1592

Open
SH20RAJ wants to merge 1 commit intomofa-org:mainfrom
SH20RAJ:test/backoff-overflow
Open

test(foundation): add overflow tests for Backoff#1592
SH20RAJ wants to merge 1 commit intomofa-org:mainfrom
SH20RAJ:test/backoff-overflow

Conversation

@SH20RAJ
Copy link
Copy Markdown
Contributor

@SH20RAJ SH20RAJ commented Apr 7, 2026

Adds unit tests to verify that Backoff::Linear and Backoff::Exponential handle overflow correctly using saturating arithmetic. The tests cover: 1) Linear backoff saturation when initial + increment * attempt overflows, and 2) Exponential backoff saturation and max cap when exponent is huge. This ensures the fix for integer overflow in Backoff::Linear remains effective.

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.

1 participant