Skip to content

Commit

Permalink
Merge pull request #1056 from mattrjacobs/deflake-slow-cacheable-command
Browse files Browse the repository at this point in the history
Use separate key for SlowCacheableCommand in HystrixCommandTest and HystrixObservableCommandTest
  • Loading branch information
mattrjacobs committed Jan 19, 2016
2 parents 2deaa92 + 754f1df commit 56ef8c2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5084,7 +5084,9 @@ private static class SlowCacheableCommand extends TestHystrixObservableCommand<S
private volatile boolean executed = false;

public SlowCacheableCommand(TestCircuitBreaker circuitBreaker, String value, int duration) {
super(testPropsBuilder().setCircuitBreaker(circuitBreaker).setMetrics(circuitBreaker.metrics));
super(testPropsBuilder()
.setCommandKey(HystrixCommandKey.Factory.asKey("ObservableSlowCacheable"))
.setCircuitBreaker(circuitBreaker).setMetrics(circuitBreaker.metrics));
this.value = value;
this.duration = duration;
}
Expand Down

0 comments on commit 56ef8c2

Please sign in to comment.