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
6fd4f441
Unverified
Commit
6fd4f441
authored
Jan 17, 2018
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix updates from micrometer
parent
f7172dd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
ZuulMetricsApplicationTests.java
...oud/netflix/zuul/metrics/ZuulMetricsApplicationTests.java
+0
-3
No files found.
spring-cloud-netflix-zuul/src/test/java/org/springframework/cloud/netflix/zuul/metrics/ZuulMetricsApplicationTests.java
View file @
6fd4f441
...
...
@@ -32,7 +32,6 @@ import com.netflix.zuul.exception.ZuulException;
import
com.netflix.zuul.monitoring.CounterFactory
;
import
com.netflix.zuul.monitoring.TracerFactory
;
import
static
io
.
micrometer
.
core
.
instrument
.
MockClock
.
clock
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
springframework
.
boot
.
test
.
context
.
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
;
...
...
@@ -72,7 +71,6 @@ public class ZuulMetricsApplicationTests {
new
ZuulException
(
"any"
,
500
,
"cause"
);
new
ZuulException
(
"any"
,
500
,
"cause"
);
clock
(
meterRegistry
).
add
(
SimpleConfig
.
DEFAULT_STEP
);
Double
count
=
meterRegistry
.
counter
(
"ZUUL::EXCEPTION:cause:500"
).
count
();
assertEquals
(
count
.
longValue
(),
2L
);
...
...
@@ -80,7 +78,6 @@ public class ZuulMetricsApplicationTests {
new
ZuulException
(
"any"
,
404
,
"cause2"
);
new
ZuulException
(
"any"
,
404
,
"cause2"
);
clock
(
meterRegistry
).
add
(
SimpleConfig
.
DEFAULT_STEP
);
count
=
meterRegistry
.
counter
(
"ZUUL::EXCEPTION:cause2:404"
).
count
();
assertEquals
(
count
.
longValue
(),
3L
);
}
...
...
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