Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
8a9c5fe4
Unverified
Commit
8a9c5fe4
authored
Jan 09, 2017
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update fixes for hystrix stream test
parent
45d769b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
HystrixStreamEndpointTests.java
...ork/cloud/netflix/hystrix/HystrixStreamEndpointTests.java
+6
-0
No files found.
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/hystrix/HystrixStreamEndpointTests.java
View file @
8a9c5fe4
...
@@ -21,6 +21,8 @@ import java.net.URL;
...
@@ -21,6 +21,8 @@ import java.net.URL;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -55,6 +57,8 @@ import static org.junit.Assert.fail;
...
@@ -55,6 +57,8 @@ import static org.junit.Assert.fail;
@DirtiesContext
@DirtiesContext
public
class
HystrixStreamEndpointTests
{
public
class
HystrixStreamEndpointTests
{
private
static
final
Log
log
=
LogFactory
.
getLog
(
HystrixStreamEndpointTests
.
class
);
@LocalServerPort
@LocalServerPort
private
int
port
=
0
;
private
int
port
=
0
;
...
@@ -80,6 +84,8 @@ public class HystrixStreamEndpointTests {
...
@@ -80,6 +84,8 @@ public class HystrixStreamEndpointTests {
byte
[]
buffer
=
new
byte
[
1024
];
byte
[]
buffer
=
new
byte
[
1024
];
in
.
read
(
buffer
);
in
.
read
(
buffer
);
data
.
add
(
new
String
(
buffer
));
data
.
add
(
new
String
(
buffer
));
}
catch
(
Exception
e
)
{
log
.
error
(
"Error getting hystrix stream, try "
+
i
,
e
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment