]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados: modify LibRadosMiscConnectFailure.ConnectFailure to comply with new... 46604/head
authorLaura Flores <lflores@redhat.com>
Thu, 9 Jun 2022 18:55:48 +0000 (18:55 +0000)
committerLaura Flores <lflores@redhat.com>
Thu, 9 Jun 2022 18:55:48 +0000 (18:55 +0000)
The unit type for `client_mount_timeout` was changed from "float" to "secs" in
983b10506dc8466a0e47ff0d320d480dd09999ec. To make this test comply with the new
seconds unit change, we need to change the value to an integer, as seconds
does not accept float values.

Fixes: https://tracker.ceph.com/issues/55971
Signed-off-by: Laura Flores <lflores@redhat.com>
src/test/librados/misc.cc

index de29f5f6efa3ac008d6887192119b5f2407393aa..e39e60f1488db04daef67ac56c9e797238efac1d 100644 (file)
@@ -58,7 +58,7 @@ TEST(LibRadosMiscConnectFailure, ConnectFailure) {
   ASSERT_EQ(0, rados_conf_read_file(cluster, NULL));
   ASSERT_EQ(0, rados_conf_parse_env(cluster, NULL));
 
-  ASSERT_EQ(0, rados_conf_set(cluster, "client_mount_timeout", "0.000000001"));
+  ASSERT_EQ(0, rados_conf_set(cluster, "client_mount_timeout", "1s"));
   ASSERT_EQ(0, rados_conf_set(cluster, "debug_monc", "20"));
   ASSERT_EQ(0, rados_conf_set(cluster, "debug_ms", "1"));
   ASSERT_EQ(0, rados_conf_set(cluster, "log_to_stderr", "true"));