From b03de53716b5b755a4fe593b3d0329a9ffdaea3a Mon Sep 17 00:00:00 2001 From: bogdankostic Date: Mon, 22 Aug 2022 13:19:45 +0200 Subject: [PATCH] Use `random_sample` instead of `ndarray` for random array (#3083) --- test/document_stores/test_opensearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/document_stores/test_opensearch.py b/test/document_stores/test_opensearch.py index 84051256f..319396548 100644 --- a/test/document_stores/test_opensearch.py +++ b/test/document_stores/test_opensearch.py @@ -24,7 +24,7 @@ class TestOpenSearchDocumentStore: # Constants - query_emb = np.ndarray(shape=(2, 2), dtype=float) + query_emb = np.random.random_sample(size=(2, 2)) index_name = "myindex" # Fixtures