Skip to content

Commit e085868

Browse files
committed
ipv6 fix
1 parent da01f86 commit e085868

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

smoke-tests-otel-starter/spring-boot-common/src/main/java/io/opentelemetry/spring/smoketest/AbstractOtelSpringStarterSmokeTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ void shouldSendTelemetry() {
201201
equalTo(HttpAttributes.HTTP_RESPONSE_STATUS_CODE, 200L),
202202
equalTo(HttpAttributes.HTTP_ROUTE, "/ping"),
203203
equalTo(ServerAttributes.SERVER_ADDRESS, "localhost"),
204-
equalTo(ClientAttributes.CLIENT_ADDRESS, "127.0.0.1"),
204+
satisfies(
205+
ClientAttributes.CLIENT_ADDRESS,
206+
s -> s.isIn("127.0.0.1", "0:0:0:0:0:0:0:1")),
205207
equalTo(
206208
AttributeKey.stringArrayKey("http.request.header.key"),
207209
Collections.singletonList("value")),

0 commit comments

Comments
 (0)