Skip to content

Commit 2d43438

Browse files
lingyinwcopybara-github
authored andcommitted
chore: Improve integration test for matching engine.
PiperOrigin-RevId: 623575782
1 parent aa918e3 commit 2d43438

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/system/aiplatform/test_matching_engine_index.py

+7
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,13 @@ def test_create_get_list_matching_engine_index(self, shared_state):
347347
# )
348348
# assert results[0][0].id == 9999
349349

350+
# FindNeighbors query for public index
351+
results = public_index_endpoint.find_neighbors(
352+
deployed_index_id=_TEST_DEPLOYED_INDEX_ID_PUBLIC,
353+
queries=[_TEST_MATCH_QUERY],
354+
)
355+
assert results[0][0].id == "0"
356+
350357
# Undeploy index from private endpoint
351358
my_index_endpoint = my_index_endpoint.undeploy_index(
352359
deployed_index_id=deployed_index.id

0 commit comments

Comments
 (0)