From badbabbd4f6c7330937d17d858a599b5218c5bd5 Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Thu, 4 Aug 2022 12:01:42 -0700 Subject: [PATCH] More --- arrow/src/ipc/writer.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arrow/src/ipc/writer.rs b/arrow/src/ipc/writer.rs index f0942b074cfe..d36eeba7eb09 100644 --- a/arrow/src/ipc/writer.rs +++ b/arrow/src/ipc/writer.rs @@ -1375,7 +1375,7 @@ mod tests { } #[test] - fn read_and_rewrite_generated_files_100() { + fn read_and_rewrite_generated_files_100() -> Result<()> { let testdata = crate::util::test_util::arrow_test_data(); let version = "1.0.0-littleendian"; // the test is repetitive, thus we can read all supported files at once @@ -1434,12 +1434,13 @@ mod tests { // read expected JSON output let arrow_json = read_gzip_json(version, path); - assert!(arrow_json.equals_reader(&mut reader).unwrap()); + assert!(arrow_json.equals_reader(&mut reader)?); }); + Ok(()) } #[test] - fn read_and_rewrite_generated_streams_100() { + fn read_and_rewrite_generated_streams_100() -> Result<()> { let testdata = crate::util::test_util::arrow_test_data(); let version = "1.0.0-littleendian"; // the test is repetitive, thus we can read all supported files at once @@ -1495,8 +1496,10 @@ mod tests { // read expected JSON output let arrow_json = read_gzip_json(version, path); - assert!(arrow_json.equals_reader(&mut reader).unwrap()); + assert!(arrow_json.equals_reader(&mut reader)?); }); + + OK(()) } /// Read gzipped JSON file