From: Kefu Chai Date: Thu, 3 Sep 2020 16:26:09 +0000 (+0800) Subject: test/pybind: pass a str to "ping_monitor()" X-Git-Tag: v16.1.0~1112^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea7e907b3b8a23255ba5a66084c3714adeecbf85;p=ceph.git test/pybind: pass a str to "ping_monitor()" monitors' names are not numbers, they are referenced by names in general. their ranks are numbers though, but that's different story. Signed-off-by: Kefu Chai --- diff --git a/src/test/pybind/test_rados.py b/src/test/pybind/test_rados.py index 7e8f75e07264..9b54f8028d90 100644 --- a/src/test/pybind/test_rados.py +++ b/src/test/pybind/test_rados.py @@ -56,7 +56,7 @@ class TestRadosStateError(object): assert_raises(RadosStateError, rados.conf_parse_env) assert_raises(RadosStateError, rados.conf_get, 'opt') assert_raises(RadosStateError, rados.conf_set, 'opt', 'val') - assert_raises(RadosStateError, rados.ping_monitor, 0) + assert_raises(RadosStateError, rados.ping_monitor, '0') def _requires_connected(self, rados): assert_raises(RadosStateError, rados.pool_exists, 'foo')