From f357459e6b159229ad40491709f756b06a6e87f1 Mon Sep 17 00:00:00 2001 From: Laura Flores Date: Thu, 9 Jun 2022 18:55:48 +0000 Subject: [PATCH] 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 --- src/test/librados/misc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/librados/misc.cc b/src/test/librados/misc.cc index de29f5f6efa3..e39e60f1488d 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")); -- 2.47.3