From ea51441fb9453905c9c7426758ec2894d85834de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sat, 24 Sep 2022 15:19:27 +0200 Subject: [PATCH] Make test independent of local option --- tests/testthat/test-zzz-trunc-mat.R | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-zzz-trunc-mat.R b/tests/testthat/test-zzz-trunc-mat.R index 7d57e8e0e..14efe8f28 100644 --- a/tests/testthat/test-zzz-trunc-mat.R +++ b/tests/testthat/test-zzz-trunc-mat.R @@ -30,7 +30,10 @@ test_that("trunc_mat output matches known output", { mtcars2 <- as_tibble(mtcars, rownames = NA) - local_options(digits = 4, width = 80, cli.unicode = l10n_info()$`UTF-8`) + local_options( + digits = 4, width = 80, cli.unicode = l10n_info()$`UTF-8`, + pillar.max_footer_lines = NULL + ) expect_snapshot({ print_without_body(mtcars2, n = 8L, width = 30L)