Skip to content

Commit 66bc3f6

Browse files
committed
spotless
1 parent dde5861 commit 66bc3f6

File tree

1 file changed

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

1 file changed

+17
-16
lines changed

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

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,23 @@ void testTelemetryDataFlow() throws java.lang.Exception {
5454
// Need to wait because some but not all the telemetry may be available in the first post body
5555
Awaitility.await()
5656
.atMost(Duration.ofSeconds(30))
57-
.until(() -> {
58-
List<String> postBodies = testing.mockedIngestion.getPostBodies();
59-
if (postBodies.isEmpty()) {
60-
return false;
61-
}
62-
63-
PostBodyVerifier tempVerifier = new PostBodyVerifier();
64-
for (String postBody : postBodies) {
65-
tempVerifier.searchPostBody(postBody);
66-
}
67-
68-
return tempVerifier.hasExceptionDoc()
69-
&& tempVerifier.hasTraceDoc()
70-
&& tempVerifier.hasDependency()
71-
&& tempVerifier.hasRequest();
72-
});
57+
.until(
58+
() -> {
59+
List<String> postBodies = testing.mockedIngestion.getPostBodies();
60+
if (postBodies.isEmpty()) {
61+
return false;
62+
}
63+
64+
PostBodyVerifier tempVerifier = new PostBodyVerifier();
65+
for (String postBody : postBodies) {
66+
tempVerifier.searchPostBody(postBody);
67+
}
68+
69+
return tempVerifier.hasExceptionDoc()
70+
&& tempVerifier.hasTraceDoc()
71+
&& tempVerifier.hasDependency()
72+
&& tempVerifier.hasRequest();
73+
});
7374
}
7475

7576
class PostBodyVerifier {

0 commit comments

Comments
 (0)