Skip to content

Commit

Permalink
test: update test case for support dynamic load replica (milvus-io#36589
Browse files Browse the repository at this point in the history
)

Signed-off-by: nico <[email protected]>
  • Loading branch information
NicoYuan1986 authored Oct 8, 2024
1 parent 0d57ff0 commit 9fdf050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python_client/testcases/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9fdf050

Please sign in to comment.