Skip to content

Commit

Permalink
testing: with gc()
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Nov 7, 2024
1 parent 3cde969 commit 598989f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/testthat/helper-TealAppDriver.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ ns_des_input <- function(id, dataname, type) {
sprintf("%s-dataset_%s_singleextract-%s", id, dataname, type)
}

app_driver_stop <- function(app_driver) {
app_driver_stop(app_driver)
app_driver$get_chromote_session()$parent$close()
app_driver$get_chromote_session()$close()
app_driver_stop <- function(app_driver, envir = parent.frame()) {
withr::defer(
{
app_driver_stop(app_driver)
app_driver$get_chromote_session()$parent$close()
app_driver$get_chromote_session()$close()
gc()
},
envir = envir
)
}

0 comments on commit 598989f

Please sign in to comment.