Skip to content

Skip test on CRAN #1681

@m7pr

Description

@m7pr

Feature description

autovalidate team suggested that we skip this test because the pipeline doesn't have access to /tmp folder.

testthat::describe("srv_session_info lockfile", {
testthat::it(paste0(
"creation process is invoked for teal.lockfile.mode = \"enabled\" ",
"and snapshot is copied to teal_app.lock and removed after session ended"
), {
testthat::skip_if_not_installed("mirai")
testthat::skip_if_not_installed("renv")
withr::with_options(
list(teal.lockfile.mode = "enabled"),
{
renv_filename <- "teal_app.lock"
shiny::testServer(
app = srv_session_info,
args = list(id = "test"),
expr = {
iter <- 1
while (!file.exists(renv_filename) && iter <= 1000) {
Sys.sleep(0.5)
iter <- iter + 1 # max wait time is 500 seconds
}
testthat::expect_true(file.exists(renv_filename))
}
)
testthat::expect_false(file.exists(renv_filename))
}
)
})

Code of Conduct

  • I agree to follow this project's Code of Conduct.

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines.

Security Policy

  • I agree to follow this project's Security Policy.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions