From 438bc3cc67d35a539a631981affd0e27a3f0004b Mon Sep 17 00:00:00 2001 From: be-marc Date: Mon, 16 Sep 2024 18:43:31 +0200 Subject: [PATCH] tests: suppress warning --- tests/testthat/test_mbo_defaults.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test_mbo_defaults.R b/tests/testthat/test_mbo_defaults.R index 1c0fc4ba..c6392aec 100644 --- a/tests/testthat/test_mbo_defaults.R +++ b/tests/testthat/test_mbo_defaults.R @@ -45,7 +45,7 @@ test_that("default_surrogate", { expect_r6(surrogate$learner[[1L]]$fallback, "LearnerRegrRanger") expect_equal(surrogate$learner[[1L]]$param_set$values, surrogate$learner[[2L]]$param_set$values) expect_equal(surrogate$learner[[1L]]$encapsulation, surrogate$learner[[2L]]$encapsulation) - expect_equal(surrogate$learner[[1L]]$fallback, surrogate$learner[[2L]]$fallback) + suppressWarnings(expect_equal(surrogate$learner[[1L]]$fallback, surrogate$learner[[2L]]$fallback)) # twocrit all numeric, noisy surrogate = default_surrogate(MAKE_INST(OBJ_1D_2_NOISY, search_space = PS_1D))