HBASE-18449 Fix client.locking.TestEntityLocks

This commit is contained in:
Chia-Ping Tsai 2017-07-26 20:26:24 +08:00
parent d9ea8ee2fb
commit 3d81f7b9e7
1 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,9 @@ public class TestEntityLocks {
lock.requestLock();
lock.await();
assertTrue(waitLockTimeOut(lock, 100 * workerSleepTime));
while (lock.getWorker().isAlive()) {
TimeUnit.MILLISECONDS.sleep(100);
}
verify(abortable, times(1)).abort(any(), isA(HBaseIOException.class));
assertFalse(lock.getWorker().isAlive());
}