Skip to content

Commit

Permalink
change test assert message
Browse files Browse the repository at this point in the history
Signed-off-by: yangxuan <[email protected]>
  • Loading branch information
XuanYang-cn committed Apr 10, 2024
1 parent f3f2a5a commit efb50fc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,7 @@ def test_milvus_client_insert_data_dim_not_match(self):
rng = np.random.default_rng(seed=19530)
rows = [{default_primary_key_field_name: i, default_vector_field_name: list(rng.random((1, default_dim+1))[0]),
default_float_field_name: i * 1.0, default_string_field_name: str(i)} for i in range(default_nb)]
error = {ct.err_code: 1, ct.err_msg: f"Collection field dim is {default_dim}, "
f"but entities field dim is {default_dim+1}"}
error = {ct.err_code: 65536, ct.err_msg: f"of float data should divide the dim({default_dim})"}
client_w.insert(client, collection_name, data= rows,
check_task=CheckTasks.err_res, check_items=error)

Expand Down Expand Up @@ -994,4 +993,4 @@ def test_milvus_client_insert_upsert(self):
client_w.release_partitions(client, collection_name, partition_name)
client_w.drop_partition(client, collection_name, partition_name)
if client_w.has_collection(client, collection_name)[0]:
client_w.drop_collection(client, collection_name)
client_w.drop_collection(client, collection_name)

0 comments on commit efb50fc

Please sign in to comment.