Skip to content

Commit

Permalink
tests: suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Sep 16, 2024
1 parent eb27ebb commit 438bc3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_mbo_defaults.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 438bc3c

Please sign in to comment.