Skip to content

Commit

Permalink
increased delay for a test + fix for pinecone async get all
Browse files Browse the repository at this point in the history
  • Loading branch information
Vits-99 committed Jan 23, 2025
1 parent d32079c commit b98ea5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion semantic_router/index/pinecone.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ async def _async_get_all(
logger.error(f"Error fetching vectors: {error_text}")
break

response_data = await response.json(content_type=None)
response_data = await response.json(content_type=None)

vector_ids = [vec["id"] for vec in response_data.get("vectors", [])]
if not vector_ids:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ async def test_second_initialization_sync(
encoder=openai_encoder, routes=routes, index=index, auto_sync="local"
)
if index_cls is PineconeIndex:
await asyncio.sleep(PINECONE_SLEEP) # allow for index to be populated
await asyncio.sleep(PINECONE_SLEEP * 2) # allow for index to be populated
assert await route_layer.async_is_synced()

@pytest.mark.skipif(
Expand Down

0 comments on commit b98ea5d

Please sign in to comment.