From c30652d75c82b30e5f22f0e30b8f594f4b68c570 Mon Sep 17 00:00:00 2001 From: James Briggs <35938317+jamescalam@users.noreply.github.com> Date: Sat, 4 Jan 2025 19:00:19 +0400 Subject: [PATCH] fix: pinecone delays --- tests/unit/test_router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_router.py b/tests/unit/test_router.py index bd5d3c50..d30c3397 100644 --- a/tests/unit/test_router.py +++ b/tests/unit/test_router.py @@ -16,7 +16,7 @@ from semantic_router.route import Route from platform import python_version -PINECONE_SLEEP = 10 +PINECONE_SLEEP = 12 def mock_encoder_call(utterances): @@ -781,7 +781,7 @@ class TestSemanticRouter: index=pineconeindex, auto_sync="local", ) - time.sleep(PINECONE_SLEEP) # allow for index to be populated + time.sleep(PINECONE_SLEEP * 2) # allow for index to be populated query_result = route_layer(text="Hello", route_filter=["Route 1"]).name try: -- GitLab