Skip to content

Commit

Permalink
skip dag id if on a different server
Browse files Browse the repository at this point in the history
ref #542
  • Loading branch information
wibeasley committed Oct 13, 2024
1 parent 4183f36 commit 6ea886d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/testthat/test-next-free-record-name.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ test_that("DAG", {
testthat::skip_on_cran()

credential_dag <- retrieve_credential_testing("dag")
if (credential_dag$redcap_uri != "https://redcap-dev-2.ouhsc.edu/redcap/api/") {
testthat::skip("Skipping test when run on a different server.")
}

expected <- "331-3"
expected <- "20-1"
observed <-
redcap_next_free_record_name(
redcap_uri = credential_dag$redcap_uri,
Expand Down

0 comments on commit 6ea886d

Please sign in to comment.