Skip to content

Commit

Permalink
give the heartbeat test a little more time leeway.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Sep 30, 2007
1 parent cfe4b91 commit 1187d33
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,5 +1,6 @@
package org.jumpmind.symmetric;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -166,7 +167,7 @@ public void testHeartbeat() throws Exception {
Thread.sleep(1000);
clientEngine.heartbeat();
clientEngine.push();
Date time = (Date)rootJdbcTemplate.queryForObject("select heartbeat_time from " + TestConstants.TEST_PREFIX+"node where external_id='"+TestConstants.TEST_CLIENT_EXTERNAL_ID+"'", Date.class);
Date time = (Date)rootJdbcTemplate.queryForObject("select heartbeat_time from " + TestConstants.TEST_PREFIX+"node where external_id='"+TestConstants.TEST_CLIENT_EXTERNAL_ID+"'", Timestamp.class);
Assert.assertTrue(time.getTime() > ts, "The client node was not sync'd to the root as expected.");
}

Expand Down

0 comments on commit 1187d33

Please sign in to comment.