From bdee9332c964332e99b0f1d7a87870856ad5dbdd Mon Sep 17 00:00:00 2001 From: Stefano Fiorucci Date: Thu, 1 Feb 2024 12:22:50 +0100 Subject: [PATCH] Pinecone - decrease concurrency in tests (#323) * pinecone - decrease concurrency * decrease more sleep time --- integrations/pinecone/pyproject.toml | 4 ++-- integrations/pinecone/tests/conftest.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integrations/pinecone/pyproject.toml b/integrations/pinecone/pyproject.toml index 2d73cdf58..c95ee0aac 100644 --- a/integrations/pinecone/pyproject.toml +++ b/integrations/pinecone/pyproject.toml @@ -54,8 +54,8 @@ dependencies = [ [tool.hatch.envs.default.scripts] # Pinecone tests are slow (require HTTP requests), so we run them in parallel # with pytest-xdist (https://pytest-xdist.readthedocs.io/en/stable/distribution.html) -test = "pytest -n auto --maxprocesses=3 {args:tests}" -test-cov = "coverage run -m pytest -n auto --maxprocesses=3 {args:tests}" +test = "pytest -n auto --maxprocesses=2 {args:tests}" +test-cov = "coverage run -m pytest -n auto --maxprocesses=2 {args:tests}" cov-report = [ "- coverage combine", "coverage report", diff --git a/integrations/pinecone/tests/conftest.py b/integrations/pinecone/tests/conftest.py index 79d2608f2..c7a1342d5 100644 --- a/integrations/pinecone/tests/conftest.py +++ b/integrations/pinecone/tests/conftest.py @@ -6,7 +6,7 @@ from haystack_integrations.document_stores.pinecone import PineconeDocumentStore # This is the approximate time it takes for the documents to be available -SLEEP_TIME = 25 +SLEEP_TIME = 20 @pytest.fixture()