Skip to content

Commit 0ab2aef

Browse files
author
Matt Jacobs
committed
Increased the timeout value for commands to accommodate Travis slowness
1 parent 9f65618 commit 0ab2aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hystrix-core/src/test/java/com/netflix/hystrix/metric/CommandStreamTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static Command from(HystrixCommandGroupKey groupKey, HystrixCommandKey ke
9191
Setter setter = Setter.withGroupKey(groupKey)
9292
.andCommandKey(key)
9393
.andCommandPropertiesDefaults(HystrixCommandProperties.Setter()
94-
.withExecutionTimeoutInMilliseconds(300)
94+
.withExecutionTimeoutInMilliseconds(600)
9595
.withExecutionIsolationStrategy(isolationStrategy)
9696
.withCircuitBreakerEnabled(true)
9797
.withCircuitBreakerRequestVolumeThreshold(3)
@@ -117,7 +117,7 @@ public static Command from(HystrixCommandGroupKey groupKey, HystrixCommandKey ke
117117
return new Command(setter, HystrixEventType.FAILURE, latency, uniqueArg, desiredFallbackEventType, fallbackLatency);
118118
case TIMEOUT:
119119
uniqueArg = uniqueId.incrementAndGet() + "";
120-
return new Command(setter, HystrixEventType.SUCCESS, 400, uniqueArg, desiredFallbackEventType, fallbackLatency);
120+
return new Command(setter, HystrixEventType.SUCCESS, 700, uniqueArg, desiredFallbackEventType, fallbackLatency);
121121
case BAD_REQUEST:
122122
uniqueArg = uniqueId.incrementAndGet() + "";
123123
return new Command(setter, HystrixEventType.BAD_REQUEST, latency, uniqueArg, desiredFallbackEventType, 0);

0 commit comments

Comments
 (0)