Skip to content

Commit

Permalink
Make OTEL tstcontainers integration test more resilient
Browse files Browse the repository at this point in the history
Tweak awaitility assertions to fix timing error that often occurs on
local builds.
  • Loading branch information
philwebb committed Jan 16, 2024
1 parent 89874d3 commit 88a8550
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void connectionCanBeMadeToOpenTelemetryCollectorContainer() {
.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\""),
Expand Down

0 comments on commit 88a8550

Please sign in to comment.