Skip to content

Commit

Permalink
MINOR: Remove version check from test_command_help (#1844)
Browse files Browse the repository at this point in the history
* Remove version

* Update parquet/src/bin/parquet-fromcsv.rs
  • Loading branch information
viirya committed Jun 11, 2022
1 parent c396dfb commit 36963d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion parquet/src/bin/parquet-fromcsv-help.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
parquet 15.0.0
Apache Arrow <dev@arrow.apache.org>
Binary to convert csv to Parquet

Expand Down
5 changes: 4 additions & 1 deletion parquet/src/bin/parquet-fromcsv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ mod tests {
let mut buffer_vec = Vec::new();
let mut buffer = std::io::Cursor::new(&mut buffer_vec);
cmd.write_long_help(&mut buffer).unwrap();
let actual = String::from_utf8(buffer_vec).unwrap();
// Remove Parquet version string from the help text
let mut actual = String::from_utf8(buffer_vec).unwrap();
let pos = actual.find('\n').unwrap() + 1;
actual = actual[pos..].to_string();
assert_eq!(
expected, actual,
"help text not match. please update to \n---\n{}\n---\n",
Expand Down

0 comments on commit 36963d7

Please sign in to comment.