Skip to content

Commit 9a329c3

Browse files
committed
Tweak timings
1 parent c3ad733 commit 9a329c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testthat/tests-cache-require-serial.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ test_that("top-level test: Caches top-level expressions efficiently on style_tex
2222
skip_on_cran()
2323
skip_on_covr()
2424
expect_lt(
25-
partially_cached_benchmark["elapsed"] * 2.4,
25+
partially_cached_benchmark["elapsed"] * 1.5,
2626
not_cached_benchmark["elapsed"]
2727
)
28-
expect_lt(full_cached_benchmark["elapsed"] * 45, benchmark["elapsed"])
28+
expect_lt(full_cached_benchmark["elapsed"] * 35, benchmark["elapsed"])
2929
})
3030

3131

@@ -37,5 +37,5 @@ test_that("roxygen code examples are written to cache as whole expressions bring
3737
# don't use full cache, only roxygen cache
3838
styled[1] <- "#' This is a nother text"
3939
second <- system.time(style_text(styled))
40-
expect_gt(first["elapsed"], 4 * second["elapsed"])
40+
expect_gt(first["elapsed"], second["elapsed"] * 2.5)
4141
})

0 commit comments

Comments
 (0)