From 5a77b5e90e1c4872e4824103d1a86f5b50026f05 Mon Sep 17 00:00:00 2001 From: Neal Richardson Date: Fri, 9 Jun 2023 13:56:41 -0400 Subject: [PATCH] Update a test expectation for a change in curl package 5.0 --- NEWS.md | 2 ++ tests/testthat/test-mock-api.R | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 4d1ba46..06aa89e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # httptest 4.2.0.9000 +* Update a test expectation due to the addition of a `name` field in `curl::form_file()` in version 5.0. + # httptest 4.2.0 * `with_mock_dir()` uses the requester set by `set_requester()` (#70, @maelle). diff --git a/tests/testthat/test-mock-api.R b/tests/testthat/test-mock-api.R index 7709dfd..38f3f5b 100644 --- a/tests/testthat/test-mock-api.R +++ b/tests/testthat/test-mock-api.R @@ -148,8 +148,8 @@ public({ "http://httpbin.org/post", 'list(y = list(path = "', testthat::test_path("setup.R"), - '", type = "text/plain")) ', - "(httpbin.org/post-79b618-POST.json)" + '", type = "text/plain", name = NULL)) ', + "(httpbin.org/post-83f219-POST.json)" ) })