From: Sage Weil Date: Thu, 28 Oct 2021 14:06:34 +0000 (-0400) Subject: ceph_test_rados_api_watch_notify: extend Watch3Timeout test X-Git-Tag: v17.1.0~504^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=af60ccdac2baa6f7545d3db1adb60cc2109cd91d;p=ceph.git ceph_test_rados_api_watch_notify: extend Watch3Timeout test Make this test try harder, since osd peering may interfere with a timeout. Fixes: https://tracker.ceph.com/issues/24990 Signed-off-by: Sage Weil --- diff --git a/src/test/librados/watch_notify.cc b/src/test/librados/watch_notify.cc index e5ea22744a0..3797e37c583 100644 --- a/src/test/librados/watch_notify.cc +++ b/src/test/librados/watch_notify.cc @@ -493,7 +493,7 @@ TEST_F(LibRadosWatchNotify, Watch3Timeout) { rados_conf_set(cluster, "objecter_inject_no_watch_ping", "true"); // allow a long time here since an osd peering event will renew our // watch. - int left = 16 * timeout; + int left = 256 * timeout; std::cout << "waiting up to " << left << " for osd to time us out ..." << std::endl; while (notify_err == 0 && --left) {