Make OTEL tstcontainers integration test more resilient

Tweak awaitility assertions to fix timing error that often occurs on
local builds.
This commit is contained in:
Phillip Webb 2024-01-16 10:47:44 -08:00
parent 89874d351a
commit 88a8550609

View File

@ -88,7 +88,7 @@ class OpenTelemetryMetricsContainerConnectionDetailsFactoryIntegrationTests {
.untilAsserted(() -> whenPrometheusScraped().then()
.statusCode(200)
.contentType(OPENMETRICS_001)
.body(endsWith("# EOF\n")));
.body(endsWith("# EOF\n"), containsString("service_name")));
whenPrometheusScraped().then()
.body(containsString(
"{job=\"test\",service_name=\"test\",telemetry_sdk_language=\"java\",telemetry_sdk_name=\"io.micrometer\""),