Skip to content

Commit

Permalink
Fix the conftest
Browse files Browse the repository at this point in the history
  • Loading branch information
Amnah199 committed Oct 25, 2024
1 parent 48b507f commit bc347b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integrations/azure_ai_search/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from haystack_integrations.document_stores.azure_ai_search import AzureAISearchDocumentStore

# This is the approximate time in seconds it takes for the documents to be available in Azure Search index
SLEEP_TIME_IN_SECONDS = 10
SLEEP_TIME_IN_SECONDS = 5


@pytest.fixture()
Expand Down Expand Up @@ -46,7 +46,7 @@ def document_store(request):
# Override some methods to wait for the documents to be available
original_write_documents = store.write_documents

def write_documents_and_wait(documents, policy=DuplicatePolicy.NONE):
def write_documents_and_wait(documents, policy=DuplicatePolicy.OVERWRITE):
written_docs = original_write_documents(documents, policy)
time.sleep(SLEEP_TIME_IN_SECONDS)
return written_docs
Expand Down

0 comments on commit bc347b9

Please sign in to comment.