Skip to content

Commit

Permalink
Close connection in test
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Sep 17, 2024
1 parent 9ae22b7 commit f6fb408
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-req-perform-connection.R
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit f6fb408

Please sign in to comment.