]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados_api_watch_notify: wait longer for osd to time us out
authorSage Weil <sage@redhat.com>
Wed, 10 Dec 2014 17:52:04 +0000 (09:52 -0800)
committerSage Weil <sage@redhat.com>
Wed, 10 Dec 2014 18:01:40 +0000 (10:01 -0800)
If cluster is thrashing this can fail.

Signed-off-by: Sage Weil <sage@redhat.com>
src/test/librados/watch_notify.cc

index ce4684656c3bb8afd4c2129be178db6b0fad370a..3e508025a9beeacea5179ba32b74c45f87b6b142 100644 (file)
@@ -231,7 +231,7 @@ TEST_F(LibRadosWatchNotify, Watch2Delete) {
                         watch_notify2_test_cb,
                         watch_notify2_test_errcb, NULL));
   ASSERT_EQ(0, rados_remove(ioctx, notify_oid));
-  int left = 180;
+  int left = 300;
   std::cout << "waiting up to " << left << " for disconnect notification ..."
            << std::endl;
   while (notify_err == 0 && --left) {
@@ -262,7 +262,7 @@ TEST_F(LibRadosWatchNotify, Watch2Timeout) {
   ASSERT_LT(age, age_bound * 1000);
   ASSERT_GT(age, 0);
   rados_conf_set(cluster, "objecter_inject_no_watch_ping", "true");
-  int left = 180;
+  int left = 300;
   std::cout << "waiting up to " << left << " for osd to time us out ..."
            << std::endl;
   while (notify_err == 0 && --left) {