Skip to content

Commit 43965e2

Browse files
committed
Change name of CommandProperties variable
1 parent 09a3279 commit 43965e2

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

hystrix/src/test/java/com/baeldung/hystrix/HystrixTimeoutTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@ public void givenCircuitBreakerSetup__whenRemoteSvcCmdExecuted_thenReturnSuccess
8989
HystrixCommand.Setter config = HystrixCommand
9090
.Setter
9191
.withGroupKey(HystrixCommandGroupKey.Factory.asKey("RemoteServiceGroupCircuitBreaker"));
92-
HystrixCommandProperties.Setter commandProperties = HystrixCommandProperties.Setter();
93-
commandProperties.withExecutionTimeoutInMilliseconds(1000);
92+
HystrixCommandProperties.Setter properties = HystrixCommandProperties.Setter();
93+
properties.withExecutionTimeoutInMilliseconds(1000);
9494

95-
commandProperties.withCircuitBreakerSleepWindowInMilliseconds(4000);
96-
commandProperties.withExecutionIsolationStrategy(
95+
properties.withCircuitBreakerSleepWindowInMilliseconds(4000);
96+
properties.withExecutionIsolationStrategy(
9797
HystrixCommandProperties.ExecutionIsolationStrategy.THREAD);
98-
commandProperties.withCircuitBreakerEnabled(true);
99-
commandProperties.withCircuitBreakerRequestVolumeThreshold(1);
98+
properties.withCircuitBreakerEnabled(true);
99+
properties.withCircuitBreakerRequestVolumeThreshold(1);
100100

101-
config.andCommandPropertiesDefaults(commandProperties);
101+
config.andCommandPropertiesDefaults(properties);
102102

103103
config.andThreadPoolPropertiesDefaults(HystrixThreadPoolProperties.Setter()
104104
.withMaxQueueSize(1)

0 commit comments

Comments
 (0)