Skip to content

Commit

Permalink
Remove snapshot, as on GHA different possible tokens are shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekbanas committed Oct 15, 2024
1 parent c9703ec commit f53947e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
10 changes: 0 additions & 10 deletions tests/testthat/_snaps/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@
Message
i Using PAT from GITHUB_PAT envar.

# `set_default_token` returns error if none are found

Code
github_testhost_priv$set_default_token(verbose = TRUE)
Condition
Error:
x No sufficient token found among: [GITHUB_PAT, GITHUB_PAT_INSUFFICIENT, GITHUB_PAT_MIN, GITHUB_PAT_ROCHE, TEST_GITHUB_PAT].
i Check if you have correct token.
! Scope that is needed: [public_repo, read:org, read:user].

# `set_default_token` sets default token for GitLab

Code
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ test_that("`set_default_token` returns error if none are found", {
"private$test_token",
FALSE
)
expect_snapshot({
expect_error({
github_testhost_priv$set_default_token(
verbose = TRUE
verbose = FALSE
)
}, error = TRUE)
})
})

test_that("`test_token` works properly", {
Expand Down

0 comments on commit f53947e

Please sign in to comment.