use of com.palantir.lock.v2.LeaderTime in project atlasdb by palantir.
the class AsyncLockServiceEteTest method leaderIdFromLockWatchingServiceIsSameAsLeaderClock.
@Test
public void leaderIdFromLockWatchingServiceIsSameAsLeaderClock() {
LeaderTime leaderTime = service.leaderTime();
LockWatchStateUpdate lockWatchUpdate = lockWatchingService.getWatchStateUpdate(Optional.empty());
assertThat(leaderTime.id().id()).isEqualTo(lockWatchUpdate.logId());
}
Aggregations