From bf0b16250edf544c306fa5a20dcebbd22b6f5808 Mon Sep 17 00:00:00 2001 From: Thomas Lin Pedersen Date: Tue, 28 Jan 2025 19:02:56 +0100 Subject: [PATCH] Fix file path tests on windows (#979) --- tests/testthat/test-plumber.R | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/testthat/test-plumber.R b/tests/testthat/test-plumber.R index f87a71ae..3543889c 100644 --- a/tests/testthat/test-plumber.R +++ b/tests/testthat/test-plumber.R @@ -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", {