From 9fdf0505a8b1d0e4b164ddc64471e2c645bca954 Mon Sep 17 00:00:00 2001 From: nico <109071306+NicoYuan1986@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:31:20 +0800 Subject: [PATCH] test: update test case for support dynamic load replica (#36589) Signed-off-by: nico --- tests/python_client/testcases/test_collection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python_client/testcases/test_collection.py b/tests/python_client/testcases/test_collection.py index 49d7776e5e3c9..843cc806d1f10 100644 --- a/tests/python_client/testcases/test_collection.py +++ b/tests/python_client/testcases/test_collection.py @@ -2834,9 +2834,9 @@ def test_load_replica_change(self): # verify load different replicas thrown an exception error = {ct.err_code: 1100, ct.err_msg: "call query coordinator LoadCollection: can't change the replica number" " for loaded collection: invalid parameter[expected=1][actual=2]"} - collection_w.load(replica_number=2, check_task=CheckTasks.err_res, check_items=error) + collection_w.load(replica_number=2) one_replica, _ = collection_w.get_replicas() - assert len(one_replica.groups) == 1 + assert len(one_replica.groups) == 2 collection_w.release() collection_w.load(replica_number=2)