From cf9ef26b9777df0d951bb8ba2dc9a97e9b2671f7 Mon Sep 17 00:00:00 2001 From: NicoYuan1986 <109071306+NicoYuan1986@users.noreply.github.com> Date: Thu, 8 Sep 2022 19:22:38 +0800 Subject: [PATCH] Update the code of Load collection failure (#19103) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “nico” Signed-off-by: “nico” --- tests/python_client/testcases/test_collection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/python_client/testcases/test_collection.py b/tests/python_client/testcases/test_collection.py index 5f1a8e08bf..32831f4345 100644 --- a/tests/python_client/testcases/test_collection.py +++ b/tests/python_client/testcases/test_collection.py @@ -2064,7 +2064,7 @@ class TestLoadCollection(TestcaseBase): c_name = cf.gen_unique_str() collection_wr = self.init_collection_wrap(name=c_name) collection_wr.drop() - error = {ct.err_code: 0, + error = {ct.err_code: 1, ct.err_msg: "DescribeCollection failed: can't find collection: %s" % c_name} collection_wr.load(check_task=CheckTasks.err_res, check_items=error) @@ -2079,7 +2079,7 @@ class TestLoadCollection(TestcaseBase): c_name = cf.gen_unique_str() collection_wr = self.init_collection_wrap(name=c_name) collection_wr.drop() - error = {ct.err_code: 0, + error = {ct.err_code: 1, ct.err_msg: "DescribeCollection failed: can't find collection: %s" % c_name} collection_wr.release(check_task=CheckTasks.err_res, check_items=error) @@ -2141,7 +2141,7 @@ class TestLoadCollection(TestcaseBase): collection_wr.load() collection_wr.release() collection_wr.drop() - error = {ct.err_code: 0, + error = {ct.err_code: 1, ct.err_msg: "DescribeCollection failed: can't find collection: %s" % c_name} collection_wr.load(check_task=CheckTasks.err_res, check_items=error) collection_wr.release(check_task=CheckTasks.err_res, check_items=error)