HBASE-20038 TestLockProcedure.testTimeout is flakey

This commit is contained in:
zhangduo 2018-02-21 21:20:24 +08:00 committed by Michael Stack
parent c06c4f30d1
commit 0432d49d83
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ public class TestLockProcedure {
sendHeartbeatAndCheckLocked(procId, true); sendHeartbeatAndCheckLocked(procId, true);
Thread.sleep(HEARTBEAT_TIMEOUT / 2); Thread.sleep(HEARTBEAT_TIMEOUT / 2);
sendHeartbeatAndCheckLocked(procId, true); sendHeartbeatAndCheckLocked(procId, true);
Thread.sleep(2 * HEARTBEAT_TIMEOUT); Thread.sleep(4 * HEARTBEAT_TIMEOUT);
sendHeartbeatAndCheckLocked(procId, false); sendHeartbeatAndCheckLocked(procId, false);
ProcedureTestingUtility.waitProcedure(procExec, procId); ProcedureTestingUtility.waitProcedure(procExec, procId);
ProcedureTestingUtility.assertProcNotFailed(procExec, procId); ProcedureTestingUtility.assertProcNotFailed(procExec, procId);