]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
bandaid for gitbuider
authorSamuel Just <samuel.just@dreamhost.com>
Mon, 29 Aug 2011 20:06:26 +0000 (13:06 -0700)
committerSage Weil <sage@newdream.net>
Mon, 29 Aug 2011 20:42:36 +0000 (13:42 -0700)
src/test/heartbeat_map.cc

index e8ab9563bd5bcfeb603731490b36313e281d96bd..9ba134afa222c37eb85481e75cc2c9382b1f2fa8 100644 (file)
@@ -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);