Skip to content

Commit

Permalink
env vars seem to be case insensitive on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Aug 6, 2021
1 parent 7b4c5cf commit fb2486b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/testthat/test-conn.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
test_that('getenvoroption works',{
skip_if_not_installed('withr')
withr::with_envvar(c('NEUPRINT_RHUBARB'="CRUMBLE"), {
expect_equal(getenvoroption("rhubarb"), list(rhubarb="CRUMBLE"))
expect_equal(getenvoroption("rhubarb", ignore.case = F),
list(rhubarb=NULL))
})
withr::with_envvar(c('NEUPRINT_RHUBARB' = "CRUMBLE"),
expect_equal(getenvoroption("rhubarb"),
list(rhubarb ="CRUMBLE")))
skip_on_os("windows")
withr::with_envvar(expect_equal(getenvoroption("rhubarb", ignore.case = F),
list(rhubarb = NULL)))
})

skip_if(as.logical(Sys.getenv("SKIP_NP_SERVER_TESTS")))
Expand Down

0 comments on commit fb2486b

Please sign in to comment.