From 1771e1d1f5f06074f7498a3a316fb13b20d1e1b2 Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Wed, 13 Mar 2024 10:37:53 +0100 Subject: [PATCH] Fix pagination test --- integrations/weaviate/tests/test_document_store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/weaviate/tests/test_document_store.py b/integrations/weaviate/tests/test_document_store.py index 2b6ad088e..4c1659a86 100644 --- a/integrations/weaviate/tests/test_document_store.py +++ b/integrations/weaviate/tests/test_document_store.py @@ -630,14 +630,14 @@ def test_embedding_retrieval_with_distance_and_certainty(self, document_store): def test_filter_documents_below_default_limit(self, document_store): docs = [] - for index in range(9999): + for index in range(9998): docs.append(Document(content="This is some content", meta={"index": index})) document_store.write_documents(docs) result = document_store.filter_documents( {"field": "content", "operator": "==", "value": "This is some content"} ) - assert len(result) == 9999 + assert len(result) == 9998 def test_filter_documents_over_default_limit(self, document_store): docs = []