From: Laura Flores Date: Thu, 9 Jun 2022 18:55:48 +0000 (+0000) Subject: test/librados: modify LibRadosMiscConnectFailure.ConnectFailure to comply with new... X-Git-Tag: v18.0.0~722^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f357459e6b159229ad40491709f756b06a6e87f1;p=ceph-ci.git test/librados: modify LibRadosMiscConnectFailure.ConnectFailure to comply with new seconds unit 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 --- diff --git a/src/test/librados/misc.cc b/src/test/librados/misc.cc index de29f5f6efa..e39e60f1488 100644 --- a/src/test/librados/misc.cc +++ b/src/test/librados/misc.cc @@ -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"));