]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados: modify LibRadosMiscConnectFailure.ConnectFailure to comply with new... 46626/head
authorLaura Flores <lflores@redhat.com>
Thu, 9 Jun 2022 18:55:48 +0000 (18:55 +0000)
committerNeeraj Pratap Singh <neesingh@redhat.com>
Tue, 28 Jun 2022 19:34:09 +0000 (01:04 +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)
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
src/test/librados/misc.cc

index bffab46cbe1f60934db1f2e7d1973d5571e05256..9c052a5d91c04ea4d012c055f53de76dfe8802a9 100644 (file)
@@ -60,7 +60,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"));