Skip to content

Commit 0df88c6

Browse files
committed
More sleeps in testing
1 parent 2d13edd commit 0df88c6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/integration/data/test_list.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import logging
22
import pytest
33
from ..helpers import poll_fetch_for_ids_in_namespace, embedding_values, random_string
4+
import time
45

56
logger = logging.getLogger(__name__)
67

@@ -21,6 +22,11 @@ def seed_for_list(idx, list_namespace, wait=True):
2122
if wait:
2223
poll_fetch_for_ids_in_namespace(idx, ids=["999"], namespace=list_namespace)
2324

25+
logger.debug(
26+
"Sleeping for 30 seconds to account for freshness being turned off for internal project index"
27+
)
28+
time.sleep(30)
29+
2430
yield
2531

2632

tests/integration/helpers/helpers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ def poll_stats_for_namespace(
9393
total_time += delta_t
9494
time.sleep(delta_t)
9595

96+
logger.debug(
97+
"Sleeping for 30 seconds to account for freshness being turned off for internal project index"
98+
)
99+
time.sleep(30)
100+
96101

97102
def poll_fetch_for_ids_in_namespace(idx: _Index, ids: List[str], namespace: str) -> None:
98103
max_sleep = int(os.environ.get("FRESHNESS_TIMEOUT_SECONDS", 60))

0 commit comments

Comments
 (0)