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
dfec9978
Commit
dfec9978
authored
Nov 09, 2015
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix failing test on travis.
parent
b117030a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ServoMetricReaderTests.java
...k/cloud/netflix/metrics/servo/ServoMetricReaderTests.java
+7
-0
No files found.
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/metrics/servo/ServoMetricReaderTests.java
View file @
dfec9978
...
@@ -12,6 +12,7 @@ import com.google.common.collect.Lists;
...
@@ -12,6 +12,7 @@ import com.google.common.collect.Lists;
import
com.netflix.servo.DefaultMonitorRegistry
;
import
com.netflix.servo.DefaultMonitorRegistry
;
import
com.netflix.servo.MonitorRegistry
;
import
com.netflix.servo.MonitorRegistry
;
import
com.netflix.servo.monitor.BasicTimer
;
import
com.netflix.servo.monitor.BasicTimer
;
import
com.netflix.servo.monitor.Monitor
;
import
com.netflix.servo.monitor.MonitorConfig
;
import
com.netflix.servo.monitor.MonitorConfig
;
import
static
junit
.
framework
.
Assert
.
assertEquals
;
import
static
junit
.
framework
.
Assert
.
assertEquals
;
...
@@ -21,6 +22,11 @@ public class ServoMetricReaderTests extends AbstractMetricsTests {
...
@@ -21,6 +22,11 @@ public class ServoMetricReaderTests extends AbstractMetricsTests {
public
void
singleCompositeMonitorYieldsMultipleActuatorMetrics
()
{
public
void
singleCompositeMonitorYieldsMultipleActuatorMetrics
()
{
MonitorRegistry
registry
=
DefaultMonitorRegistry
.
getInstance
();
MonitorRegistry
registry
=
DefaultMonitorRegistry
.
getInstance
();
// deal with monitors registered in other tests
for
(
Monitor
<?>
monitor
:
registry
.
getRegisteredMonitors
())
{
registry
.
unregister
(
monitor
);
}
ServoMetricReader
reader
=
new
ServoMetricReader
(
registry
,
ServoMetricReader
reader
=
new
ServoMetricReader
(
registry
,
new
DimensionalServoMetricNaming
());
new
DimensionalServoMetricNaming
());
...
@@ -47,3 +53,4 @@ public class ServoMetricReaderTests extends AbstractMetricsTests {
...
@@ -47,3 +53,4 @@ public class ServoMetricReaderTests extends AbstractMetricsTests {
metricNames
.
get
(
3
));
metricNames
.
get
(
3
));
}
}
}
}
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