Skip to content

Commit 2b1f327

Browse files
committed
Merge pull request Netflix#1139 from mattrjacobs/deflake-collapser-unit-test
Increased batch command timeout in HystrixCollapserTest to accommodate Travis slowness
2 parents ef47804 + 116a8b0 commit 2b1f327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ private static class TestCollapserCommand extends TestHystrixCommand<List<String
10711071
private final Collection<CollapsedRequest<String, String>> requests;
10721072

10731073
TestCollapserCommand(Collection<CollapsedRequest<String, String>> requests) {
1074-
super(testPropsBuilder().setCommandPropertiesDefaults(HystrixCommandPropertiesTest.getUnitTestPropertiesSetter().withExecutionTimeoutInMilliseconds(50)));
1074+
super(testPropsBuilder().setCommandPropertiesDefaults(HystrixCommandPropertiesTest.getUnitTestPropertiesSetter().withExecutionTimeoutInMilliseconds(500)));
10751075
this.requests = requests;
10761076
}
10771077

@@ -1086,7 +1086,7 @@ protected List<String> run() {
10861086
}
10871087
if (request.getArgument().equals("TIMEOUT")) {
10881088
try {
1089-
Thread.sleep(200);
1089+
Thread.sleep(800);
10901090
} catch (InterruptedException e) {
10911091
e.printStackTrace();
10921092
}

0 commit comments

Comments
 (0)