Skip to content

Commit

Permalink
Pinecone - decrease concurrency in tests (#323)
Browse files Browse the repository at this point in the history
* pinecone - decrease concurrency

* decrease more sleep time
  • Loading branch information
anakin87 authored Feb 1, 2024
1 parent f56905a commit bdee933
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions integrations/pinecone/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion integrations/pinecone/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bdee933

Please sign in to comment.