Skip to content

Commit

Permalink
Lengthen latent commands for semaphore-rejection unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jacobs committed Jun 13, 2016
1 parent ce1edcd commit a1d2eb6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,8 @@ public void testExecutionHookSemaphoreRejectedSuccessfulFallback() {
public C call() {
AbstractCommand.TryableSemaphore semaphore = new AbstractCommand.TryableSemaphoreActual(HystrixProperty.Factory.asProperty(2));

final C cmd1 = getLatentCommand(ExecutionIsolationStrategy.SEMAPHORE, ExecutionResult.SUCCESS, 500, FallbackResult.SUCCESS, semaphore);
final C cmd2 = getLatentCommand(ExecutionIsolationStrategy.SEMAPHORE, ExecutionResult.SUCCESS, 500, FallbackResult.SUCCESS, semaphore);
final C cmd1 = getLatentCommand(ExecutionIsolationStrategy.SEMAPHORE, ExecutionResult.SUCCESS, 1500, FallbackResult.SUCCESS, semaphore);
final C cmd2 = getLatentCommand(ExecutionIsolationStrategy.SEMAPHORE, ExecutionResult.SUCCESS, 1500, FallbackResult.SUCCESS, semaphore);

//saturate the semaphore
new Thread() {
Expand Down

0 comments on commit a1d2eb6

Please sign in to comment.