Skip to content

Commit

Permalink
Fix file path tests on windows (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 authored Jan 28, 2025
1 parent 2ed0ee5 commit bf0b162
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/testthat/test-plumber.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@ test_that("plumb gives a good error when passing in a dir instead of a file", {
# brittle test. Fails on r-devel-windows-x86_64-gcc10-UCRT
skip_on_cran()

if (isWindows()) {
# File paths are hard to work with and are inconsistent
skip_on_os("windows")
}

expect_error(plumb(test_path("files/")), "Expecting a file but found a directory: 'files/'")
expect_error(plumb(test_path("files/")), "Expecting a file but found a directory: 'files")
})

test_that("plumb accepts a directory with a `plumber.R` file", {
Expand Down

0 comments on commit bf0b162

Please sign in to comment.