@@ -98,7 +98,7 @@ TEST_F(MonMapTest, DISABLED_build_initial_config_from_dns) {
9898
9999
100100
101- boost::intrusive_ptr<CephContext> cct = new CephContext (CEPH_ENTITY_TYPE_MON);
101+ boost::intrusive_ptr<CephContext> cct ( new CephContext (CEPH_ENTITY_TYPE_MON), false );
102102 cct->_conf .set_val (" mon_dns_srv_name" , " cephmon" );
103103 MonMap monmap;
104104 int r = monmap.build_initial (cct.get (), false , std::cerr);
@@ -135,7 +135,7 @@ TEST_F(MonMapTest, DISABLED_build_initial_config_from_dns_fail) {
135135 .WillOnce (Return (0 ));
136136#endif
137137
138- boost::intrusive_ptr<CephContext> cct = new CephContext (CEPH_ENTITY_TYPE_MON);
138+ boost::intrusive_ptr<CephContext> cct ( new CephContext (CEPH_ENTITY_TYPE_MON), false );
139139 // using default value of mon_dns_srv_name option
140140 MonMap monmap;
141141 int r = monmap.build_initial (cct.get (), false , std::cerr);
@@ -196,7 +196,7 @@ TEST_F(MonMapTest, DISABLED_build_initial_config_from_dns_with_domain) {
196196
197197
198198
199- boost::intrusive_ptr<CephContext> cct = new CephContext (CEPH_ENTITY_TYPE_MON);
199+ boost::intrusive_ptr<CephContext> cct ( new CephContext (CEPH_ENTITY_TYPE_MON), false );
200200 cct->_conf .set_val (" mon_dns_srv_name" , " cephmon_ceph.com" );
201201 MonMap monmap;
202202 int r = monmap.build_initial (cct.get (), false , std::cerr);
@@ -221,7 +221,7 @@ TEST_F(MonMapTest, DISABLED_build_initial_config_from_dns_with_domain) {
221221}
222222
223223TEST (MonMapBuildInitial, build_initial_mon_host_from_dns) {
224- boost::intrusive_ptr<CephContext> cct = new CephContext (CEPH_ENTITY_TYPE_MON);
224+ boost::intrusive_ptr<CephContext> cct ( new CephContext (CEPH_ENTITY_TYPE_MON), false );
225225 cct->_conf .set_val (" mon_host" , " ceph.io" );
226226 MonMap monmap;
227227 int r = monmap.build_initial (cct.get (), false , std::cerr);
@@ -233,7 +233,7 @@ TEST(MonMapBuildInitial, build_initial_mon_host_from_dns) {
233233}
234234
235235TEST (MonMapBuildInitial, build_initial_mon_host_from_dns_fail) {
236- boost::intrusive_ptr<CephContext> cct = new CephContext (CEPH_ENTITY_TYPE_MON);
236+ boost::intrusive_ptr<CephContext> cct ( new CephContext (CEPH_ENTITY_TYPE_MON), false );
237237 cct->_conf .set_val (" mon_host" , " ceph.noname" );
238238 MonMap monmap;
239239 int r = monmap.build_initial (cct.get (), false , std::cerr);
0 commit comments