]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados: rados_connect() should succeed 10806/head
authorKefu Chai <kchai@redhat.com>
Mon, 22 Aug 2016 03:57:17 +0000 (11:57 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 22 Aug 2016 03:59:25 +0000 (11:59 +0800)
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 <kchai@redhat.com>
src/test/librados/io.cc

index 92c69530566b00218c870360710b7507388df040..d17c22be43c77f9ea63dd5267173a96757853227 100644 (file)
@@ -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());