This is an automated email from the ASF dual-hosted git repository. opwvhk pushed a commit to branch branch-1.12 in repository https://gitbox.apache.org/repos/asf/avro.git
commit 7ac26a05c3cf2203453daa41abb6be8808eb395e Author: Oscar Westra van Holthe - Kind <[email protected]> AuthorDate: Fri Jun 13 12:11:21 2025 +0200 AVRO-3791: Add missing test change The change was omitted from main due to enabling fastread by default. --- .../org/apache/avro/TestReadingWritingDataInEvolvedSchemas.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lang/java/avro/src/test/java/org/apache/avro/TestReadingWritingDataInEvolvedSchemas.java b/lang/java/avro/src/test/java/org/apache/avro/TestReadingWritingDataInEvolvedSchemas.java index 89fedc75ca..5df9416ec5 100644 --- a/lang/java/avro/src/test/java/org/apache/avro/TestReadingWritingDataInEvolvedSchemas.java +++ b/lang/java/avro/src/test/java/org/apache/avro/TestReadingWritingDataInEvolvedSchemas.java @@ -234,7 +234,7 @@ public class TestReadingWritingDataInEvolvedSchemas { byte[] encoded = encodeGenericBlob(record, encoderType); AvroTypeException exception = Assertions.assertThrows(AvroTypeException.class, () -> decodeGenericBlob(FLOAT_RECORD, writer, encoded, encoderType)); - Assertions.assertEquals("Found double, expecting float", exception.getMessage()); + Assertions.assertEquals("Field \"fieldA\" content mismatch: Found double, expecting float", exception.getMessage()); } @ParameterizedTest @@ -245,7 +245,7 @@ public class TestReadingWritingDataInEvolvedSchemas { byte[] encoded = encodeGenericBlob(record, encoderType); AvroTypeException exception = Assertions.assertThrows(AvroTypeException.class, () -> decodeGenericBlob(LONG_RECORD, writer, encoded, encoderType)); - Assertions.assertEquals("Found float, expecting long", exception.getMessage()); + Assertions.assertEquals("Field \"fieldA\" content mismatch: Found float, expecting long", exception.getMessage()); } @ParameterizedTest @@ -256,7 +256,7 @@ public class TestReadingWritingDataInEvolvedSchemas { byte[] encoded = encodeGenericBlob(record, encoderType); AvroTypeException exception = Assertions.assertThrows(AvroTypeException.class, () -> decodeGenericBlob(INT_RECORD, writer, encoded, encoderType)); - Assertions.assertEquals("Found long, expecting int", exception.getMessage()); + Assertions.assertEquals("Field \"fieldA\" content mismatch: Found long, expecting int", exception.getMessage()); } @ParameterizedTest @@ -344,7 +344,7 @@ public class TestReadingWritingDataInEvolvedSchemas { AvroTypeException exception = Assertions.assertThrows(AvroTypeException.class, () -> decodeGenericBlob(ENUM_AB_RECORD, writer, encoded, encoderType)); - Assertions.assertEquals("No match for C", exception.getMessage()); + Assertions.assertEquals("Field \"fieldA\" content mismatch: No match for C", exception.getMessage()); } @ParameterizedTest
