Skip to content

Commit

Permalink
Just skip the parquet test if write_parquet() fails
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Mar 21, 2024
1 parent 15e3ed3 commit 8b928e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/testthat/test-parse-body.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ test_that("Test parquet parser", {
}, add = TRUE)

r_object <- iris
arrow::write_parquet(r_object, tmp)
res <- try(arrow::write_parquet(r_object, tmp))
skip_if(
inherits(res, "try-error"),
"arrow::write_parquet() isn't working."
)

val <- readBin(tmp, "raw", 10000)

parsed <- parse_body(val, "application/vnd.apache.parquet", make_parser("parquet"))
Expand Down

0 comments on commit 8b928e9

Please sign in to comment.