Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 committed Nov 14, 2024
1 parent 278a9c2 commit f30e767
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ public void leaseManagerRejectsJobs() {
DefaultLeaseManager defaultLeaseManager = new DefaultLeaseManager(settings, stateStore);

defaultLeaseManager.borrow(getLeaseRequest(JobType.BATCH));
assertThrows(ConcurrencyLimitExceededException.class, () ->
defaultLeaseManager.borrow(getLeaseRequest(JobType.INTERACTIVE)));
assertThrows(ConcurrencyLimitExceededException.class, () ->
defaultLeaseManager.borrow(getLeaseRequest(JobType.STREAMING)));
assertThrows(ConcurrencyLimitExceededException.class, () ->
defaultLeaseManager.borrow(getLeaseRequest(JobType.REFRESH)));
assertThrows(
ConcurrencyLimitExceededException.class,
() -> defaultLeaseManager.borrow(getLeaseRequest(JobType.INTERACTIVE)));
assertThrows(
ConcurrencyLimitExceededException.class,
() -> defaultLeaseManager.borrow(getLeaseRequest(JobType.STREAMING)));
assertThrows(
ConcurrencyLimitExceededException.class,
() -> defaultLeaseManager.borrow(getLeaseRequest(JobType.REFRESH)));
}

@Test
Expand Down

0 comments on commit f30e767

Please sign in to comment.