Skip to content

Commit

Permalink
Skip testing fsa on CI - statcan server can timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ateucher committed Jan 24, 2024
1 parent f230448 commit 810910f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/testthat/test-data_functions.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
context("test layer load")


avail <- available_layers()
fn_names <- avail$layer_name[!(avail$local) &
!grepl("cded_", avail$layer_name)]

# Only test bec and tsa once in a while - they're really big
fn_names <- setdiff(fn_names, c("bec", "tsa"))

donttest <- c("bec", "tsa")
# Skip fsa on ci - statcan server can timeout a lot
if (nzchar(Sys.getenv("CI"))) {
donttest <- c(donttest, "fsa")
}
fn_names <- setdiff(fn_names, donttest)

test_that("All sf layer function work without error and returns an sf object.", {
skip_on_cran()
Expand Down

0 comments on commit 810910f

Please sign in to comment.