diff --git a/src/dist/replication/test/meta_test/unit_test/meta_test_base.h b/src/dist/replication/test/meta_test/unit_test/meta_test_base.h index 3483e77b5c..9145fe104d 100644 --- a/src/dist/replication/test/meta_test/unit_test/meta_test_base.h +++ b/src/dist/replication/test/meta_test/unit_test/meta_test_base.h @@ -22,7 +22,9 @@ class meta_test_base : public testing::Test _ms = make_unique(); _ms->_failure_detector.reset(new meta_server_failure_detector(_ms.get())); _ms->_balancer.reset(utils::factory_store::create( - _ms->_meta_opts._lb_opts.server_load_balancer_type.c_str(), PROVIDER_TYPE_MAIN, this)); + _ms->_meta_opts._lb_opts.server_load_balancer_type.c_str(), + PROVIDER_TYPE_MAIN, + _ms.get())); ASSERT_EQ(_ms->remote_storage_initialize(), ERR_OK); _ms->initialize_duplication_service(); ASSERT_TRUE(_ms->_dup_svc);