From 131b3469d8a308e5bc33dc32c72ba3c0992f18a4 Mon Sep 17 00:00:00 2001 From: Xiaohai Xu Date: Sat, 29 Feb 2020 19:21:49 +0800 Subject: [PATCH] fix case (#1443) Signed-off-by: Xiaohai Xu --- tests/milvus_python_test/test_table_info.py | 30 --------------------- 1 file changed, 30 deletions(-) diff --git a/tests/milvus_python_test/test_table_info.py b/tests/milvus_python_test/test_table_info.py index f5bd8e89..c9c5476a 100644 --- a/tests/milvus_python_test/test_table_info.py +++ b/tests/milvus_python_test/test_table_info.py @@ -98,36 +98,6 @@ class TestTableInfoBase: assert status.OK() assert info.count == nb - 2 - @pytest.mark.timeout(INFO_TIMEOUT) - def test_get_table_info_table_row_count_no_flush(self, connect, table): - ''' - target: get row count with table_info - method: add and delete vectors, check count in table info (without flush) - expected: status ok, count as expected - ''' - vectors = gen_vector(nb, dim) - status, ids = connect.add_vectors(table, vectors) - assert status.OK() - status, info = connect.table_info(table) - assert status.OK() - assert info.count == 0 # no flush, table still empty - status = connect.flush([table]) - assert status.OK() - status, info = connect.table_info(table) - assert status.OK() - assert info.count == nb - # delete vectors - status = connect.delete_by_id(table, ids) - assert status.OK() - status, info = connect.table_info(table) - assert status.OK() - assert info.count == nb # no flush, vectors not deleted - status = connect.flush([table]) - assert status.OK() - status, info = connect.table_info(table) - assert status.OK() - assert info.count == 0 - @pytest.mark.timeout(INFO_TIMEOUT) def test_get_table_info_partition_stats_A(self, connect, table): ''' -- GitLab