This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch 370-print-debug-for-TestError
in repository https://gitbox.apache.org/repos/asf/avro-rs.git

commit 8d49e17b5d9acca932ecf104e2a38176c72c350e
Author: Martin Tzvetanov Grigorov <[email protected]>
AuthorDate: Thu Jan 8 05:35:03 2026 +0200

    Use TestResult for two tests in schema.rs
    
    Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
---
 avro/src/schema.rs | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/avro/src/schema.rs b/avro/src/schema.rs
index 9d988c8..cba069b 100644
--- a/avro/src/schema.rs
+++ b/avro/src/schema.rs
@@ -7470,7 +7470,7 @@ mod tests {
     }
 
     #[test]
-    fn avro_rs_339_schema_ref_uuid() {
+    fn avro_rs_339_schema_ref_uuid() -> TestResult {
         let schema = Schema::parse_str(
             r#"{
             "name": "foo",
@@ -7491,14 +7491,15 @@ mod tests {
                 }
             ]
         }"#,
-        )
-        .unwrap();
-        let _resolved = ResolvedSchema::try_from(&schema).unwrap();
-        let _resolved_owned = ResolvedOwnedSchema::try_from(schema).unwrap();
+        )?;
+        let _resolved = ResolvedSchema::try_from(&schema)?;
+        let _resolved_owned = ResolvedOwnedSchema::try_from(schema)?;
+
+        Ok(())
     }
 
     #[test]
-    fn avro_rs_339_schema_ref_decimal() {
+    fn avro_rs_339_schema_ref_decimal() -> TestResult {
         let schema = Schema::parse_str(
             r#"{
             "name": "foo",
@@ -7521,10 +7522,11 @@ mod tests {
                 }
             ]
         }"#,
-        )
-        .unwrap();
-        let _resolved = ResolvedSchema::try_from(&schema).unwrap();
-        let _resolved_owned = ResolvedOwnedSchema::try_from(schema).unwrap();
+        )?;
+        let _resolved = ResolvedSchema::try_from(&schema)?;
+        let _resolved_owned = ResolvedOwnedSchema::try_from(schema)?;
+
+        Ok(())
     }
 
     #[test]

Reply via email to