mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
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:
parent
89874d351a
commit
88a8550609
@ -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\""),
|
||||
|
Loading…
Reference in New Issue
Block a user