提交 2302971f 编写于 作者: N neza2017 提交者: yefu.chen

Get collection stats

Signed-off-by: Nneza2017 <yefu.chen@zilliz.com>
上级 9be4a107
......@@ -203,8 +203,6 @@ class TestIndexBase:
connect.create_index(collection, field_name, get_simple_index)
connect.create_index(collection, field_name, get_simple_index)
# TODO:
@pytest.mark.skip("get_collection_stats")
@pytest.mark.level(2)
@pytest.mark.timeout(BUILD_TIMEOUT)
def test_create_different_index_repeatedly(self, connect, collection):
......@@ -219,7 +217,7 @@ class TestIndexBase:
connect.create_index(collection, field_name, index)
stats = connect.get_collection_stats(collection)
# assert stats["partitions"][0]["segments"][0]["index_name"] == index["index_type"]
assert stats["row_count"] == default_nb
assert stats["row_count"] == str(default_nb)
@pytest.mark.timeout(BUILD_TIMEOUT)
def test_create_index_ip(self, connect, collection, get_simple_index):
......@@ -355,7 +353,6 @@ class TestIndexBase:
# TODO:
@pytest.mark.skip("get_collection_stats")
@pytest.mark.level(2)
@pytest.mark.timeout(BUILD_TIMEOUT)
def test_create_different_index_repeatedly_ip(self, connect, collection):
......@@ -370,7 +367,7 @@ class TestIndexBase:
connect.create_index(collection, field_name, index)
stats = connect.get_collection_stats(collection)
# assert stats["partitions"][0]["segments"][0]["index_name"] == index["index_type"]
assert stats["row_count"] == default_nb
assert stats["row_count"] == str(default_nb)
"""
******************************************************************
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册