From f6fb40865ef59eda55f10e6f846361a5718c078d Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Tue, 17 Sep 2024 17:03:52 -0500 Subject: [PATCH] Close connection in test --- tests/testthat/test-req-perform-connection.R | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testthat/test-req-perform-connection.R b/tests/testthat/test-req-perform-connection.R index 7c94a29d..922e3193 100644 --- a/tests/testthat/test-req-perform-connection.R +++ b/tests/testthat/test-req-perform-connection.R @@ -8,6 +8,7 @@ test_that("validates inputs", { test_that("correctly prepares request", { req <- request_test("/post") %>% req_method("POST") expect_no_error(resp <- req_perform_connection(req)) + close(resp) }) test_that("can read all data from a connection", {