From 2302971f77d3e383dd558eb686928a925639d127 Mon Sep 17 00:00:00 2001 From: neza2017 Date: Wed, 24 Feb 2021 18:37:55 +0800 Subject: [PATCH] Get collection stats Signed-off-by: neza2017 --- tests/python/test_index.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/python/test_index.py b/tests/python/test_index.py index 981bad3250..022fcc7553 100644 --- a/tests/python/test_index.py +++ b/tests/python/test_index.py @@ -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) """ ******************************************************************