Skip to content

Commit

Permalink
Fix testthat for non-rstudio sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
lindeloev committed May 3, 2024
1 parent e1cde05 commit 5aef9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_job.R
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,5 @@ if (rstudioapi::isAvailable()) {
rm(list = ls(all.names = TRUE))
rm(list = ls(all.names = TRUE, envir = globalenv()))
} else {
expect_error(job::job({a = 1}), pattern = "You must run this from the RStudio main session.")
expect_error(job::job({a = 1}), "You must run this from the RStudio main session.")
}

0 comments on commit 5aef9cf

Please sign in to comment.