[skip e2e] Update test case after code change (#18163)

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
This commit is contained in:
binbin 2022-07-08 11:22:21 +08:00 committed by GitHub
parent 5eb35f2cab
commit fcb5db0e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -767,15 +767,16 @@ class TestUtilityBase(TestcaseBase):
"""
target: test loading progress without loading
method: insert and flush data, call loading_progress without loading
expected: raise exception
expected: return successfully with 0%
"""
collection_w = self.init_collection_wrap()
df = cf.gen_default_dataframe_data()
collection_w.insert(df)
assert collection_w.num_entities == ct.default_nb
error = {ct.err_code: 1, ct.err_msg: {"has not been loaded into QueryNode"}}
self.utility_wrap.loading_progress(collection_w.name,
check_task=CheckTasks.err_res, check_items=error)
res = self.utility_wrap.loading_progress(collection_w.name)[0]
exp_res = {loading_progress: '0%', num_loaded_partitions: 0, not_loaded_partitions: ['_default']}
assert exp_res == res
@pytest.mark.tags(CaseLabel.L1)
@pytest.mark.parametrize("nb", [ct.default_nb, 5000])