File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
smoke-tests/framework/src/main/java/com/microsoft/applicationinsights/smoketest Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 39
39
import java .util .function .Predicate ;
40
40
import java .util .stream .Collectors ;
41
41
import javax .annotation .Nullable ;
42
- import org .awaitility .core .ConditionTimeoutException ;
43
42
import org .junit .jupiter .api .extension .AfterAllCallback ;
44
43
import org .junit .jupiter .api .extension .AfterEachCallback ;
45
44
import org .junit .jupiter .api .extension .BeforeAllCallback ;
@@ -290,16 +289,11 @@ private void clearOutAnyInitLogs() throws Exception {
290
289
HttpHelper .getResponseCodeEnsuringSampled (contextRootUrl );
291
290
waitForHealthCheckTelemetry (contextRootUrl );
292
291
if (!useOld3xAgent ) {
293
- try {
294
- await ()
295
- .untilAsserted (
296
- () ->
297
- assertThat (mockedIngestion .getLiveMetrics ().getRequestCount (contextRootUrl ))
298
- .isEqualTo (1 ));
299
- } catch (ConditionTimeoutException e ) {
300
- // TODO (trask) need to fix race condition in live metrics
301
- // where sometimes it loses telemetry
302
- }
292
+ await ()
293
+ .untilAsserted (
294
+ () ->
295
+ assertThat (mockedIngestion .getLiveMetrics ().getRequestCount (contextRootUrl ))
296
+ .isEqualTo (1 ));
303
297
}
304
298
System .out .println ("Clearing any RequestData from health check." );
305
299
mockedIngestion .resetData ();
You can’t perform that action at this time.
0 commit comments