test: fix struct array nullable field error expectation (#51073)

This PR updates the struct array invalid-case test expectation to match
the current error message for nullable sub-fields inside a non-nullable
struct.

The affected parametrized cases are:
- test_struct_array_with_nullable_field[clip_embedding1]
- test_struct_array_with_nullable_field[scalar_field]

This is a test-only change.

---------

Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
nico
2026-07-07 14:28:33 +08:00
committed by GitHub
parent 116877a0aa
commit c701920a32
@@ -4777,8 +4777,8 @@ class TestMilvusClientStructArrayInvalid(TestMilvusClientV2Base):
)
error = {
ct.err_code: 1100,
ct.err_msg: f"sub-field in non-nullable struct cannot be nullable individually, "
f"set nullable on the struct instead: structName=clips, subFieldName={nullable_field}",
ct.err_msg: f"Field '{nullable_field}' in struct 'clips' cannot be nullable individually, "
f"set nullable on the struct instead",
}
self.create_collection(
client,