Skip to content

Commit

Permalink
Raising execution latency and timeout for execution hook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jacobs committed Jun 13, 2016
1 parent d877328 commit 2c0f792
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3882,7 +3882,7 @@ public void testExecutionHookThreadTimeoutNoFallbackRunSuccess() {
new Func0<TestHystrixCommand<Integer>>() {
@Override
public TestHystrixCommand<Integer> call() {
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.SUCCESS, 150, AbstractTestHystrixCommand.FallbackResult.UNIMPLEMENTED, 50);
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.SUCCESS, 500, AbstractTestHystrixCommand.FallbackResult.UNIMPLEMENTED, 200);
}
},
new Action1<TestHystrixCommand<Integer>>() {
Expand Down Expand Up @@ -3915,7 +3915,7 @@ public void testExecutionHookThreadTimeoutSuccessfulFallbackRunSuccess() {
new Func0<TestHystrixCommand<Integer>>() {
@Override
public TestHystrixCommand<Integer> call() {
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.SUCCESS, 150, AbstractTestHystrixCommand.FallbackResult.SUCCESS, 50);
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.SUCCESS, 500, AbstractTestHystrixCommand.FallbackResult.SUCCESS, 200);
}
},
new Action1<TestHystrixCommand<Integer>>() {
Expand Down Expand Up @@ -3946,7 +3946,7 @@ public void testExecutionHookThreadTimeoutUnsuccessfulFallbackRunSuccess() {
new Func0<TestHystrixCommand<Integer>>() {
@Override
public TestHystrixCommand<Integer> call() {
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.SUCCESS, 150, AbstractTestHystrixCommand.FallbackResult.FAILURE, 50);
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.SUCCESS, 500, AbstractTestHystrixCommand.FallbackResult.FAILURE, 200);
}
},
new Action1<TestHystrixCommand<Integer>>() {
Expand Down Expand Up @@ -3978,7 +3978,7 @@ public void testExecutionHookThreadTimeoutNoFallbackRunFailure() {
new Func0<TestHystrixCommand<Integer>>() {
@Override
public TestHystrixCommand<Integer> call() {
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.FAILURE, 150, AbstractTestHystrixCommand.FallbackResult.UNIMPLEMENTED, 50);
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.FAILURE, 500, AbstractTestHystrixCommand.FallbackResult.UNIMPLEMENTED, 200);
}
},
new Action1<TestHystrixCommand<Integer>>() {
Expand Down Expand Up @@ -4011,7 +4011,7 @@ public void testExecutionHookThreadTimeoutSuccessfulFallbackRunFailure() {
new Func0<TestHystrixCommand<Integer>>() {
@Override
public TestHystrixCommand<Integer> call() {
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.FAILURE, 150, AbstractTestHystrixCommand.FallbackResult.SUCCESS, 50);
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.FAILURE, 500, AbstractTestHystrixCommand.FallbackResult.SUCCESS, 200);
}
},
new Action1<TestHystrixCommand<Integer>>() {
Expand Down Expand Up @@ -4041,7 +4041,7 @@ public void testExecutionHookThreadTimeoutUnsuccessfulFallbackRunFailure() {
new Func0<TestHystrixCommand<Integer>>() {
@Override
public TestHystrixCommand<Integer> call() {
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.FAILURE, 150, AbstractTestHystrixCommand.FallbackResult.FAILURE, 50);
return getCommand(ExecutionIsolationStrategy.THREAD, AbstractTestHystrixCommand.ExecutionResult.FAILURE, 500, AbstractTestHystrixCommand.FallbackResult.FAILURE, 200);
}
},
new Action1<TestHystrixCommand<Integer>>() {
Expand Down

0 comments on commit 2c0f792

Please sign in to comment.