Skip to content

Commit

Permalink
Fix outpack_server CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed Jan 19, 2024
1 parent c938c59 commit d70a1dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/helper-outpack-server.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
outpack_server <- function(path, timeout = 10) {
outpack_server <- Sys.which("outpack_server")
outpack_server <- Sys.which("outpack")
if (!nzchar(outpack_server)) {
testthat::skip("outpack_server not installed")
}
args <- c("--root", path)
args <- c("start-server", "--root", path)
px <- processx::process$new(outpack_server, args)
withr::defer_parent(px$kill())

Expand Down

0 comments on commit d70a1dc

Please sign in to comment.