We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53d39c0 commit 8b5b390Copy full SHA for 8b5b390
tests/testthat/test.R
@@ -342,6 +342,7 @@ test_that("clean up file descriptor on interrupt", {
342
tmp <- tempfile()
343
l <- filelock::lock(tmp)
344
rs <- callr::r_session$new()
345
+ on.exit(rs$close(), add = TRUE)
346
rs$call(
347
function(path) .GlobalEnv$lock <- filelock::lock(path),
348
list(tmp)
@@ -372,6 +373,7 @@ test_that("clean up file descriptor on timeout", {
372
373
374
375
376
377
378
function(path) .GlobalEnv$lock <- filelock::lock(path, timeout = 10),
379
0 commit comments