Skip to content

test: Use random_sample instead of ndarray for random array in OpenSearchDocumentStore test#3083

Merged
vblagoje merged 1 commit intomainfrom
fix_opensearch_tests
Aug 22, 2022
Merged

test: Use random_sample instead of ndarray for random array in OpenSearchDocumentStore test#3083
vblagoje merged 1 commit intomainfrom
fix_opensearch_tests

Conversation

@bogdankostic
Copy link
Contributor

Related Issues

Proposed Changes:

This PR makes a small change to TestOpenSearchDocumentStore by creating query_emb using np.random.random_sample instead of numpy.ndaray. This makes sure that there are no nan values in query_emb.

How did you test it?

I let the tests for OpenSearchDocumentStore run.

Checklist

@bogdankostic bogdankostic marked this pull request as ready for review August 22, 2022 10:42
@bogdankostic bogdankostic requested a review from a team as a code owner August 22, 2022 10:42
@bogdankostic bogdankostic requested review from vblagoje and removed request for a team August 22, 2022 10:42
Copy link
Member

@vblagoje vblagoje left a comment

Choose a reason for hiding this comment

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

Good find @bogdankostic

@vblagoje vblagoje merged commit b03de53 into main Aug 22, 2022
@vblagoje vblagoje deleted the fix_opensearch_tests branch August 22, 2022 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test__get_vector_similarity_query_support_true and test__get_vector_similarity_query_support_false for OpenSearchDocumentStore are flaky

3 participants