Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import java.util.function.Predicate;
import java.util.stream.Collectors;
import javax.annotation.Nullable;
import org.awaitility.core.ConditionTimeoutException;
import org.junit.jupiter.api.extension.AfterAllCallback;
import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.BeforeAllCallback;
Expand Down Expand Up @@ -290,16 +289,11 @@ private void clearOutAnyInitLogs() throws Exception {
HttpHelper.getResponseCodeEnsuringSampled(contextRootUrl);
waitForHealthCheckTelemetry(contextRootUrl);
if (!useOld3xAgent) {
try {
await()
.untilAsserted(
() ->
assertThat(mockedIngestion.getLiveMetrics().getRequestCount(contextRootUrl))
.isEqualTo(1));
} catch (ConditionTimeoutException e) {
// TODO (trask) need to fix race condition in live metrics
// where sometimes it loses telemetry
}
await()
.untilAsserted(
() ->
assertThat(mockedIngestion.getLiveMetrics().getRequestCount(contextRootUrl))
.isEqualTo(1));
}
System.out.println("Clearing any RequestData from health check.");
mockedIngestion.resetData();
Expand Down