Skip to content

Commit 8a9c5fe

Browse files
committed
Update fixes for hystrix stream test
1 parent 45d769b commit 8a9c5fe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/hystrix/HystrixStreamEndpointTests.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
import java.util.ArrayList;
2222
import java.util.List;
2323

24+
import org.apache.commons.logging.Log;
25+
import org.apache.commons.logging.LogFactory;
2426
import org.junit.Test;
2527
import org.junit.runner.RunWith;
2628
import org.springframework.beans.factory.annotation.Autowired;
@@ -55,6 +57,8 @@
5557
@DirtiesContext
5658
public class HystrixStreamEndpointTests {
5759

60+
private static final Log log = LogFactory.getLog(HystrixStreamEndpointTests.class);
61+
5862
@LocalServerPort
5963
private int port = 0;
6064

@@ -80,6 +84,8 @@ public void hystrixStreamWorks() throws Exception {
8084
byte[] buffer = new byte[1024];
8185
in.read(buffer);
8286
data.add(new String(buffer));
87+
} catch (Exception e) {
88+
log.error("Error getting hystrix stream, try " + i, e);
8389
}
8490
}
8591

0 commit comments

Comments
 (0)