Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.