]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
unittest_daemon_config: add needed rm_val()
authorSage Weil <sage@redhat.com>
Wed, 10 Jan 2018 22:13:10 +0000 (16:13 -0600)
committerSage Weil <sage@redhat.com>
Tue, 6 Mar 2018 20:44:49 +0000 (14:44 -0600)
Otherwise we polluate later tests.

Signed-off-by: Sage Weil <sage@redhat.com>
src/test/daemon_config.cc

index 23abf248c6a7024042ad56bc8e5c9a2a511f3fa2..221b854d635cd4ec1ae65d27d811955149a50e33 100644 (file)
@@ -40,6 +40,7 @@ TEST(DaemonConfig, SimpleSet) {
   ret = g_ceph_context->_conf->get_val("log_graylog_port", &tmp, sizeof(buf));
   ASSERT_EQ(0, ret);
   ASSERT_EQ(string("21"), string(buf));
+  g_ceph_context->_conf->rm_val("log_graylog_port");
 }
 
 TEST(DaemonConfig, Substitution) {
@@ -348,6 +349,8 @@ TEST(DaemonConfig, InvalidIntegers) {
     int ret = g_ceph_context->_conf->set_val("log_graylog_port", str);
     ASSERT_EQ(-EINVAL, ret);
   }
+
+  g_ceph_context->_conf->rm_val("log_graylog_port");
 }
 
 TEST(DaemonConfig, InvalidFloats) {