Skip to content

Commit 3c8eb98

Browse files
committed
only run on GitHub actions
1 parent ba5ae1c commit 3c8eb98

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/testthat/test-session.R

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ test_that("get_config errors when it has no environment variables",{
3333

3434
with_mock_dir(test_path("not-logged-in"), {
3535
test_that("Can log in", {
36+
testthat::skip_if_not(Sys.getenv("GITHUB_ACTIONS") == "true")
3637
expect_null(.conbench_session$cookie)
3738
expect_error(resp <- request("http://localhost/api") |>
3839
req_url_path_append("users") |>
3940
conbench_perform())
40-
# This is still a 401 becuase httptest2 only has one possible response for users
41-
# expect_identical(resp_status(resp), 401L)
42-
# expect_identical(.conbench_session$cookie, "REDACTED")
4341
})
4442
})
4543

0 commit comments

Comments
 (0)