From de560b6be951618d7d0bed950f777849ce7ed11a Mon Sep 17 00:00:00 2001 From: zhenwu Date: Fri, 29 Nov 2019 17:51:28 +0800 Subject: [PATCH] Update case --- tests/milvus_python_test/test_index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/milvus_python_test/test_index.py b/tests/milvus_python_test/test_index.py index 8ba24f743..8ce03b6a6 100644 --- a/tests/milvus_python_test/test_index.py +++ b/tests/milvus_python_test/test_index.py @@ -570,7 +570,10 @@ class TestIndexIP: logging.getLogger().info(index_params) status, ids = connect.add_vectors(ip_table, vectors) status = connect.create_index(ip_table, index_params) - assert status.OK() + if index_params["index_type"] == IndexType.IVF_PQ: + assert not status.OK() + else: + assert status.OK() @pytest.mark.timeout(BUILD_TIMEOUT) def test_create_index_partition(self, connect, ip_table, get_index_params): -- GitLab