Skip to content

Commit 9b0d833

Browse files
improve existing test to expose problematic behavior
1 parent 9ec6687 commit 9b0d833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-cache-high-level-api.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ capture.output(test_that("no speedup when tranformer changes", {
117117
fresh_testthat_cache()
118118
t1 <- tidyverse_style()
119119
first <- system.time(style_text(text, transformers = t1))
120-
t1$use_raw_indention <- !t1$use_raw_indention
120+
t1 <- tidyverse_style(indent_by = 4)
121121
second <- system.time(style_text(text, transformers = t1))
122122
expect_false(first["elapsed"] / 2 > second["elapsed"])
123123
}))

0 commit comments

Comments
 (0)