Skip to content

Include cache sizes equal to max when testing#522

Merged
sstults merged 1 commit intomainfrom
bug/cache-it
Oct 30, 2025
Merged

Include cache sizes equal to max when testing#522
sstults merged 1 commit intomainfrom
bug/cache-it

Conversation

@sstults
Copy link
Member

@sstults sstults commented Oct 30, 2025

The current test loop fills the cache while it's less than the max, and then there are assertions that require the added amount to be greater than. When we happen to add exactly enough to the cache to equal the maximum then the loop exits but the assertions that the size is greater than the maximum are not valid.

The change just adds the equal condition to the loop so that when it exits we are sure that the amount added is greater than the maximum.

See opensearch-project/opensearch-learning-to-rank-base#248

Signed-off-by: Scott Stults <sstults@opensourceconnections.com>
@sstults sstults merged commit 1dfed57 into main Oct 30, 2025
1 check 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.

1 participant