Skip to content

Commit 4311723

Browse files
committed
fix: Skip Plumber tests on CRAN
1 parent 41836cc commit 4311723

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/testthat/test-data_storage-plumber.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ logger::log_threshold(logger::FATAL, namespace = "shiny.telemetry")
1414
Sys.setenv(R_CONFIG_ACTIVE = "test")
1515

1616
test_that("[Plumber] DataStorage should be able to insert and read", {
17+
skip_on_cran()
18+
1719
db_path <- tempfile(pattern = "events", fileext = ".sqlite")
1820

1921
old_env <- capture_evironment_variables(
@@ -78,6 +80,8 @@ test_that("[Plumber] DataStorage should be able to insert and read", {
7880
})
7981

8082
test_that("Plumber API works", {
83+
skip_on_cran()
84+
8185
db_path <- tempfile(pattern = "events", fileext = ".sqlite")
8286

8387
old_env <- capture_evironment_variables(
@@ -138,6 +142,8 @@ test_that("Plumber API works", {
138142

139143

140144
test_that("Plumber API token only accepts valid messages", {
145+
skip_on_cran()
146+
141147
db_path <- tempfile(pattern = "events", fileext = ".sqlite")
142148

143149
old_env <- capture_evironment_variables(

tests/testthat/test-telemetry-integration-plumber.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Test that performs integration checks on how Telemetry class works with a
22
# valid data storage provider.
33
test_that("[Plumber] Telemetry writes and reads events (integration)", {
4+
skip_on_cran()
5+
46
db_path <- tempfile(pattern = "events", fileext = ".sqlite")
57

68
old_env <- capture_evironment_variables(

0 commit comments

Comments
 (0)