From: Kefu Chai Date: Mon, 22 Aug 2016 03:57:17 +0000 (+0800) Subject: test/librados: rados_connect() should succeed X-Git-Tag: v11.0.1~418^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10806%2Fhead;p=ceph.git test/librados: rados_connect() should succeed the "rados_osd_op_timeout" setting does not apply to the initial connection. this regression was introduced by 6c67073 Fixes: http://tracker.ceph.com/issues/17087 Signed-off-by: Kefu Chai --- diff --git a/src/test/librados/io.cc b/src/test/librados/io.cc index 92c69530566b..d17c22be43c7 100644 --- a/src/test/librados/io.cc +++ b/src/test/librados/io.cc @@ -54,7 +54,7 @@ TEST_F(LibRadosIo, ReadTimeout) { 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, "rados_osd_op_timeout", "0.00001")); // use any small value that will result in a timeout - ASSERT_NE(0, rados_connect(cluster)); + ASSERT_EQ(0, rados_connect(cluster)); ASSERT_EQ(0, rados_ioctx_create(cluster, pool_name.c_str(), &ioctx)); rados_ioctx_set_namespace(ioctx, nspace.c_str());