mirror of
https://github.com/ceph/ceph
synced 2025-01-25 12:34:46 +00:00
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 <kchai@redhat.com>
This commit is contained in:
parent
07a06d1f74
commit
c8451ad108
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user