Skip to content

Commit c263a36

Browse files
committed
Meet cran cores requirements
1 parent 0fe93d5 commit c263a36

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

tests/testthat.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ library(testthat)
22
library(checked)
33

44
# Meet CRAN multiple core usage requirement
5-
Sys.setenv("OMP_THREAD_LIMIT" = 2)
65
test_check("checked")

tests/testthat/_snaps/reporters.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
[][install] pkg.ok.error started
1818
[][check] rev.both.ok started
1919
[][install] pkg.ok.error finished ()
20-
[][check] rev.both.ok finished with 2 NOTES ()
20+
[][check] rev.both.ok finished with 1 NOTE ()
2121
[][check] rev.both.error started
22-
[][check] rev.both.error finished with 2 NOTES ()
22+
[][check] rev.both.error finished with 1 NOTE ()
2323
[][check] rev.both.ok started
24-
[][check] rev.both.ok finished with 2 NOTES ()
24+
[][check] rev.both.ok finished with 1 NOTE ()
2525
[][check] rev.both.error started
26-
[][check] rev.both.error finished with 1 ERROR, 1 WARNING, 1 NOTE ()
26+
[][check] rev.both.error finished with 1 ERROR, 1 WARNING ()
2727
Finished in
2828

tests/testthat/test-check-reverse.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test_that("check_rev_deps works for package with no revdeps", {
1919
expect_no_error(
2020
checks <- check_rev_deps(
2121
file.path(sources_new, "pkg.none"),
22-
n = 2L,
22+
n = 1L,
2323
repos = repo,
2424
reporter = NULL
2525
)
@@ -37,7 +37,7 @@ test_that("check_rev_deps works for package with one breaking change", {
3737
withr::with_options(list(pkgType = "source"), {
3838
design <- check_rev_deps(
3939
file.path(sources_new, "pkg.ok.error"),
40-
n = 2L,
40+
n = 1L,
4141
repos = repo,
4242
reporter = NULL
4343
)
@@ -102,7 +102,7 @@ test_that("check_rev_deps works for a package without a version in repos", {
102102
withr::with_options(list(pkgType = "source"), {
103103
expect_no_error(design <- check_rev_deps(
104104
file.path(sources_new, "pkg.suggests"),
105-
n = 2L,
105+
n = 1L,
106106
repos = repo,
107107
reporter = NULL
108108
))

tests/testthat/test-check.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test_that("check_pkgs works as expected", {
44
expect_no_error(
55
plan <- check_pkgs(
66
file.path(examples_path, c("exampleGood", "exampleBad")),
7-
n = 2L,
7+
n = 1L,
88
repos = "https://cran.r-project.org/",
99
reporter = NULL,
1010
lib.loc = .libPaths()

tests/testthat/test-results-utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test_that("results_to_df works as expected", {
44
expect_no_error(
55
plan <- check_pkgs(
66
file.path(examples_path, c("exampleGood", "exampleBad")),
7-
n = 2L,
7+
n = 1L,
88
repos = "https://cran.r-project.org/",
99
reporter = NULL
1010
)

0 commit comments

Comments
 (0)