File tree Expand file tree Collapse file tree
hystrix/src/test/java/com/baeldung/hystrix Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments