Skip to content

Commit 83b3258

Browse files
committed
Add sleeps
1 parent 5393df9 commit 83b3258

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/integration/data/test_fetch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
embedding_values,
88
random_string,
99
)
10+
import time
1011

1112
from pinecone import PineconeException, FetchResponse, Vector, SparseValues
1213

@@ -64,6 +65,7 @@ def seed(idx, namespace):
6465
def seed_for_fetch(idx, fetch_namespace):
6566
seed(idx, fetch_namespace)
6667
seed(idx, "")
68+
time.sleep(30)
6769
yield
6870

6971

tests/integration/helpers/helpers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ def poll_fetch_for_ids_in_namespace(idx: _Index, ids: List[str], namespace: str)
116116
total_time += delta_t
117117
time.sleep(delta_t)
118118

119+
logger.debug(
120+
"Extra 30 second sleep to account for freshness being turned off for internal project index"
121+
)
122+
time.sleep(30)
123+
119124

120125
def fake_api_key():
121126
return "-".join([random_string(x) for x in [8, 4, 4, 4, 12]])

0 commit comments

Comments
 (0)