diff --git a/tests/testthat/test-sparsity.R b/tests/testthat/test-sparsity.R index ecef7f1..f0db3e2 100644 --- a/tests/testthat/test-sparsity.R +++ b/tests/testthat/test-sparsity.R @@ -49,9 +49,9 @@ test_that("id: 1, recipe sparsity: yes, sparsity: high, model support: yes, arg: local_mocked_bindings( xgb_train = function(x, ...) { if (methods::is(x, "sparseMatrix")) { - cli::cli_abort("correct: x is sparse matrix") + stop("correct: x is sparse matrix") } else { - cli::cli_abort("wrong: x is dense matrix") + stop("wrong: x is dense matrix") } }, .package = "parsnip"