From: Samuel Just Date: Mon, 29 Aug 2011 20:06:26 +0000 (-0700) Subject: bandaid for gitbuider X-Git-Tag: v0.35~190 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8cb25cab2eb3033de896c08af2c0a26d52bbf337;p=ceph.git bandaid for gitbuider --- diff --git a/src/test/heartbeat_map.cc b/src/test/heartbeat_map.cc index e8ab9563bd5b..9ba134afa222 100644 --- a/src/test/heartbeat_map.cc +++ b/src/test/heartbeat_map.cc @@ -24,7 +24,7 @@ TEST(HeartbeatMap, Healthy) { HeartbeatMap hm(g_ceph_context); heartbeat_handle_d *h = hm.add_worker("one"); - hm.reset_timeout(h, 10); + hm.reset_timeout(h, 9, 18); bool healthy = hm.is_healthy(); ASSERT_EQ(healthy, true); @@ -35,7 +35,7 @@ TEST(HeartbeatMap, Unhealth) { HeartbeatMap hm(g_ceph_context); heartbeat_handle_d *h = hm.add_worker("one"); - hm.reset_timeout(h, 1); + hm.reset_timeout(h, 1, 3); sleep(2); bool healthy = hm.is_healthy(); ASSERT_EQ(healthy, false);