Skip to content

Commit

Permalink
Fix pagination test
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza committed Mar 13, 2024
1 parent 811f6bc commit 1771e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/weaviate/tests/test_document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 1771e1d

Please sign in to comment.