Skip to content

Commit 56ef8c2

Browse files
committed
Merge pull request #1056 from mattrjacobs/deflake-slow-cacheable-command
Use separate key for SlowCacheableCommand in HystrixCommandTest and HystrixObservableCommandTest
2 parents 2deaa92 + 754f1df commit 56ef8c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hystrix-core/src/test/java/com/netflix/hystrix/HystrixObservableCommandTest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -5084,7 +5084,9 @@ private static class SlowCacheableCommand extends TestHystrixObservableCommand<S
50845084
private volatile boolean executed = false;
50855085

50865086
public SlowCacheableCommand(TestCircuitBreaker circuitBreaker, String value, int duration) {
5087-
super(testPropsBuilder().setCircuitBreaker(circuitBreaker).setMetrics(circuitBreaker.metrics));
5087+
super(testPropsBuilder()
5088+
.setCommandKey(HystrixCommandKey.Factory.asKey("ObservableSlowCacheable"))
5089+
.setCircuitBreaker(circuitBreaker).setMetrics(circuitBreaker.metrics));
50885090
this.value = value;
50895091
this.duration = duration;
50905092
}

0 commit comments

Comments
 (0)