Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Changes needed for unit tests to pass after ng-dashboard commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dtillman committed Apr 1, 2015
1 parent eb54615 commit 838d5be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -43,7 +43,7 @@ private void assertExternalResourceMetricBag(MetricsBag mb) {
assertTrue(keys.get(0).equals(AbstractMetricsGenerator.EXECUTION_TIME));
List<IDataPoint> points = mb.getPoints(AbstractMetricsGenerator.EXECUTION_TIME);
assertEquals(1, points.size());
assertEquals(160.0, points.get(0).getValue(), 0.01);
assertEquals(160.0, points.get(0).getValue(), 0.5);

assertTrue(keys.get(1).equals(AbstractMetricsGenerator.INVOCATION_COUNT));
points = mb.getPoints(AbstractMetricsGenerator.INVOCATION_COUNT);
Expand Down
Expand Up @@ -42,7 +42,7 @@ protected void validateMetricsBags(List<MetricsBag> mbs) {

List<IDataPoint> points = mb.getPoints(AbstractMetricsGenerator.EXECUTION_TIME);
assertEquals(1, points.size());
assertEquals(160.0, points.get(0).getValue(), .0001);
assertEquals(160.0, points.get(0).getValue(), .5);

points = mb.getPoints(AbstractMetricsGenerator.INVOCATION_COUNT);
assertEquals(1, points.size());
Expand Down
Expand Up @@ -46,7 +46,7 @@ private void assertExternalResourceMetricBag(AbstractRabbitMetricsGenerator genR
assertTrue(keys.get(0).equals(AbstractMetricsGenerator.EXECUTION_TIME));
List<IDataPoint> points = mb.getPoints(AbstractMetricsGenerator.EXECUTION_TIME);
assertEquals(1, points.size());
assertEquals(160.0, points.get(0).getValue(), 0.01);
assertEquals(160.0, points.get(0).getValue(), 0.5);

assertTrue(keys.get(1).equals(AbstractMetricsGenerator.INVOCATION_COUNT));
points = mb.getPoints(AbstractMetricsGenerator.INVOCATION_COUNT);
Expand Down

0 comments on commit 838d5be

Please sign in to comment.