Skip to content

Commit cc499d5

Browse files
zacdav-dbZac Davies
andauthored
Trying to fix failing test on CRAN R CMD Check that can't be repro'd locally. (#110)
Co-authored-by: Zac Davies <zachary.davies+data@databricks.com>
1 parent bd28a1b commit cc499d5

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
^LICENSE\.md$
1111
^NOTICE
1212
^cran-comments\.md$
13+
^CLAUDE.md
14+
^\.claude

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: brickster
22
Title: R Toolkit for 'Databricks'
3-
Version: 0.2.8
3+
Version: 0.2.8.1
44
Authors@R:
55
c(
66
person(given = "Zac",

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ export(sql_query_task)
242242
export(wait_for_lib_installs)
243243
import(cli)
244244
import(httr2)
245+
importFrom(R6,R6Class)
245246
importFrom(glue,glue)
246247
importFrom(rlang,.data)
247248
importFrom(stats,setNames)

tests/testthat/test-request-helpers.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
test_that("request helpers - building requests", {
2-
32
host <- "some_url"
4-
token <- "some_token"
3+
token <- "some_token"
54
endpoint <- "clusters/create"
65
endpoint_version <- "2.0"
76
method <- "POST"
@@ -27,7 +26,7 @@ test_that("request helpers - building requests", {
2726
expect_identical(req$body$data, body)
2827
expect_no_error(req$options$useragent)
2928
expect_equal(req$policies$retry_max_tries, 3)
30-
if (packageVersion("httr2") >= "1.1.2.9000") {
29+
if (packageVersion("httr2") >= "1.2.0") {
3130
headers <- httr2::req_get_headers(req, "reveal")
3231
} else {
3332
headers <- req$headers
@@ -38,5 +37,4 @@ test_that("request helpers - building requests", {
3837
expect_equal(unclass(req_json), "{\"a\":1,\"b\":2}")
3938
expect_s3_class(req_json, "json")
4039
expect_null(db_request_json(NULL))
41-
4240
})

0 commit comments

Comments
 (0)