HBASE-18449 Fix client.locking.TestEntityLocks

This commit is contained in:
Chia-Ping Tsai 2017-07-26 20:29:14 +08:00
parent fb80a8e886
commit 164df6bdd9
1 changed files with 3 additions and 0 deletions

View File

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