diff --git a/tests/unit/test_sync.py b/tests/unit/test_sync.py index 1e4b72c148dafee6d40c02b6e3f7165442d3fdb9..4cf28dfc9d71674472de8864549dad6025e39d6a 100644 --- a/tests/unit/test_sync.py +++ b/tests/unit/test_sync.py @@ -209,15 +209,18 @@ class TestRouteLayer: os.environ.get("PINECONE_API_KEY") is None, reason="Pinecone API key required" ) def test_second_initialization_not_synced( - self, openai_encoder, routes_2, index_cls + self, openai_encoder, routes, routes_2, index_cls ): - index = init_index(index_cls) + index = init_index(index_cls, sync=None) route_layer = RouteLayer( - encoder=openai_encoder, routes=routes_2, top_k=10, index=index + encoder=openai_encoder, routes=routes, index=index + ) + route_layer2 = RouteLayer( + encoder=openai_encoder, routes=routes_2, index=index ) if index_cls is PineconeIndex: time.sleep(PINECONE_SLEEP) # allow for index to be populated - assert not route_layer.is_synced() + assert route_layer.is_synced() is False @pytest.mark.skipif( os.environ.get("PINECONE_API_KEY") is None, reason="Pinecone API key required"