Skip to content

Commit 92f3a05

Browse files
committed
more
1 parent 0f33883 commit 92f3a05

File tree

1 file changed

+2
-8
lines changed
  • smoke-tests/apps/LiveMetrics/src/smokeTest/java/com/microsoft/applicationinsights/smoketest

1 file changed

+2
-8
lines changed

smoke-tests/apps/LiveMetrics/src/smokeTest/java/com/microsoft/applicationinsights/smoketest/LiveMetricsTest.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,7 @@ private boolean hasDependency(List<MetricPoint> metrics) {
140140
String name = metric.getName();
141141
double value = metric.getValue();
142142
if (name.equals("\\ApplicationInsights\\Dependency Calls/Sec")) {
143-
// TODO wait for the live metrics from health check to be emitted
144-
// before calling MockedQuickPulseServlet.resetData()
145-
// then we can assert that the value is exactly == 1
146-
return value >= 1;
143+
return value == 1;
147144
}
148145
}
149146
return false;
@@ -154,10 +151,7 @@ private boolean hasRequest(List<MetricPoint> metrics) {
154151
String name = metric.getName();
155152
double value = metric.getValue();
156153
if (name.equals("\\ApplicationInsights\\Requests/Sec")) {
157-
// TODO wait for the live metrics from health check to be emitted
158-
// before calling MockedQuickPulseServlet.resetData()
159-
// then we can assert that the value is exactly == 1
160-
return value >= 1;
154+
return value == 1;
161155
}
162156
}
163157
return false;

0 commit comments

Comments
 (0)