From 66a528a1c1dbc4fc5197925c460966cb88aca45a Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Fri, 17 Nov 2023 21:39:26 +0000 Subject: [PATCH] tweak cyclocomp test --- tests/testthat/test-cyclocomp_linter.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-cyclocomp_linter.R b/tests/testthat/test-cyclocomp_linter.R index 0342c3599..192ccccbc 100644 --- a/tests/testthat/test-cyclocomp_linter.R +++ b/tests/testthat/test-cyclocomp_linter.R @@ -17,8 +17,8 @@ test_that("returns the correct linting", { expect_lint(complexity, lint_msg, cc_linter_2) expect_lint( complexity, - "should have cyclomatic complexity of less than 2, this has 10", + "should have cyclomatic complexity of less than 2, this has 6", cc_linter_2 ) - expect_lint(complexity, NULL, cyclocomp_linter(10L)) + expect_lint(complexity, NULL, cyclocomp_linter(6L)) })