]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados: modify LibRadosMiscConnectFailure.ConnectFailure to comply with new... 46563/head
authorLaura Flores <lflores@redhat.com>
Thu, 9 Jun 2022 18:55:48 +0000 (18:55 +0000)
committerNeeraj Pratap Singh <neesingh@redhat.com>
Fri, 10 Jun 2022 17:47:08 +0000 (23:17 +0530)
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>
(cherry picked from commit f357459e6b159229ad40491709f756b06a6e87f1)

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"));