Skip to content

Commit

Permalink
fix: pinecone add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescalam committed Nov 14, 2024
1 parent 343e688 commit c8f8d76
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/unit/test_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,12 @@ def test_delete_index(self, openai_encoder, routes, index_cls):

def test_add_route(self, routes, openai_encoder, index_cls):
index = init_index(index_cls, sync="local")
route_layer = RouteLayer(encoder=openai_encoder, routes=[], index=index)
route_layer = RouteLayer(
encoder=openai_encoder, routes=[], index=index,
auto_sync="local"
)
if index_cls is PineconeIndex:
time.sleep(PINECONE_SLEEP) # allow for index to be updated

# Initially, the local routes list should be empty
assert route_layer.routes == []
Expand Down

0 comments on commit c8f8d76

Please sign in to comment.