From 8c2581efe4689b5f8dd72faad92558347714e0cb Mon Sep 17 00:00:00 2001 From: berkecanrizai <63911408+berkecanrizai@users.noreply.github.com> Date: Wed, 27 Mar 2024 23:27:50 +0300 Subject: [PATCH] fix: add delay to langchain vs tests GitOrigin-RevId: 2e5de5db1780fe7eeafcbc974e750280a12f6835 --- python/pathway/xpacks/llm/tests/test_vector_store.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pathway/xpacks/llm/tests/test_vector_store.py b/python/pathway/xpacks/llm/tests/test_vector_store.py index 341b5b38..6fb1e5c1 100644 --- a/python/pathway/xpacks/llm/tests/test_vector_store.py +++ b/python/pathway/xpacks/llm/tests/test_vector_store.py @@ -158,7 +158,7 @@ def pathway_server(tmp_path, host, port): thread.join() -@pytest.mark.flaky(reruns=4) +@pytest.mark.flaky(reruns=4, reruns_delay=20) @xfail_on_multiple_threads def test_vector_store_with_langchain(tmp_path: pathlib.Path) -> None: host = "0.0.0.0" @@ -171,7 +171,7 @@ def test_vector_store_with_langchain(tmp_path: pathlib.Path) -> None: p.start() time.sleep(5) client = VectorStoreClient(host=host, port=port) - MAX_ATTEMPTS = 7 + MAX_ATTEMPTS = 8 attempts = 0 output = [] while attempts < MAX_ATTEMPTS: