From 0196644b268e683b697edf9e2cdfbf3aa64fa5c5 Mon Sep 17 00:00:00 2001 From: Vits Date: Thu, 19 Sep 2024 22:26:29 +0200 Subject: [PATCH] Fixed broken tests --- Makefile | 2 +- tests/unit/test_layer.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3d76b7b8..8283b96d 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ lint lint_diff: poetry run mypy $(PYTHON_FILES) test: - poetry run pytest -vv -n 20 --cov=semantic_router --cov-report=term-missing --cov-report=xml + poetry run pytest -vv --cov=semantic_router --cov-report=term-missing --cov-report=xml test_functional: poetry run pytest -vv -n 20 tests/functional diff --git a/tests/unit/test_layer.py b/tests/unit/test_layer.py index 6f29e036..12773995 100644 --- a/tests/unit/test_layer.py +++ b/tests/unit/test_layer.py @@ -16,7 +16,7 @@ from platform import python_version -PINECONE_SLEEP = 15 +PINECONE_SLEEP = 12 def mock_encoder_call(utterances): @@ -50,7 +50,6 @@ def init_index( index = index_cls( index_name=TEST_ID, dimensions=dimensions, namespace=namespace, sync=sync ) - time.sleep(PINECONE_SLEEP) else: index = index_cls() return index