Skip to content

Commit 79d50d1

Browse files
laurittrask
andauthored
Run grpc tests with ipv4 (#11087)
Co-authored-by: Trask Stalnaker <[email protected]>
1 parent 17c8f0d commit 79d50d1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

instrumentation/grpc-1.6/javaagent/build.gradle.kts

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ tasks {
3737
jvmArgs("-Dotel.instrumentation.grpc.capture-metadata.client.request=some-client-key")
3838
jvmArgs("-Dotel.instrumentation.grpc.capture-metadata.server.request=some-server-key")
3939
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
40+
// latest dep test occasionally fails because network type is ipv6 instead of the expected ipv4
41+
// and peer address is 0:0:0:0:0:0:0:1 instead of 127.0.0.1
42+
jvmArgs("-Djava.net.preferIPv4Stack=true")
4043

4144
// exclude our grpc library instrumentation, the ContextStorageOverride contained within it
4245
// breaks the tests

instrumentation/grpc-1.6/library/build.gradle.kts

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ tasks {
2020
test {
2121
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
2222
jvmArgs("-Dotel.instrumentation.common.experimental.controller-telemetry.enabled=true")
23+
// latest dep test occasionally fails because network type is ipv6 instead of the expected ipv4
24+
// and peer address is 0:0:0:0:0:0:0:1 instead of 127.0.0.1
25+
jvmArgs("-Djava.net.preferIPv4Stack=true")
2326
}
2427
}
2528

0 commit comments

Comments
 (0)