Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Aug 4, 2022
1 parent dae94f2 commit badbabb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions arrow/src/ipc/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit badbabb

Please sign in to comment.