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)