Skip to content

Conversation

@code-inflation
Copy link
Owner

No description provided.

Prevents division by zero bug in run_latency_test function when
nr_latency_tests is set to 0. Added range validation (1..1000)
consistent with nr_tests parameter.

Without this fix, setting --nr-latency-tests 0 would result in
NaN when calculating average latency due to division by zero.
Added comprehensive unit tests for nr_tests and nr_latency_tests
parameter validation to ensure:
- Zero values are rejected
- Minimum valid value (1) is accepted
- Maximum valid value (999) is accepted
- Out of range values (1000+) are rejected

This ensures the division by zero bug fix is properly tested.
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