Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
- Perhaps it's the httpuv client not closing fast enough when it finds a new port?
  • Loading branch information
ElianHugh committed Sep 16, 2024
1 parent b6ecb63 commit 39baf6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/engine.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ new_engine <- function(config) {
config$host,
config$socket_port
),
autostart = NA
autostart = TRUE
)
)
),
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/helpers.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
new_test_engine <- function() {
new_engine(
new_config(
path = system.file("examples", "plumber.R", package = "hotwater")
)
config <- new_config(
path = system.file("examples", "plumber.R", package = "hotwater")
)
Sys.sleep(2L)
new_engine(config)
}

cleanup_test_engine <- function(engine) {
Expand Down

0 comments on commit 39baf6f

Please sign in to comment.