Skip to content

Commit 13ae4fb

Browse files
committed
Fix sporadic test failure
1 parent 258befe commit 13ae4fb

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,25 @@ jobs:
3939
test-java-version:
4040
- 8
4141
- 11
42+
- 11
43+
- 11
44+
- 11
45+
- 11
46+
- 11
47+
- 11
48+
- 11
49+
- 11
50+
- 11
51+
- 11
52+
- 11
53+
- 11
54+
- 11
55+
- 11
56+
- 11
57+
- 11
58+
- 11
59+
- 11
60+
- 11
4261
- 17
4362
- 20
4463
fail-fast: false

azure-resources/src/test/java/io/opentelemetry/contrib/azure/resource/MetadataBasedResourceProviderTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ private AttributesAssert mockServerResponse() {
4545
}
4646

4747
@NotNull
48+
@SuppressWarnings("SystemOut")
4849
private AttributesAssert createResource(Supplier<Optional<String>> client) {
50+
String response = client.get().orElse(null);
51+
System.out.println("response: " + response);
52+
client = () -> Optional.ofNullable(response);
4953
Resource resource = getResourceProvider(client).createResource(null);
5054
return OpenTelemetryAssertions.assertThat(resource.getAttributes());
5155
}

buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ tasks {
6767

6868
testLogging {
6969
exceptionFormat = TestExceptionFormat.FULL
70-
showExceptions = true
71-
showCauses = true
72-
showStackTraces = true
70+
showStandardStreams = true
7371
}
7472
}
7573

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ val DEPENDENCIES = listOf(
5858
"com.google.code.findbugs:jsr305:3.0.2",
5959
"com.squareup.okhttp3:okhttp:4.12.0",
6060
"com.uber.nullaway:nullaway:0.12.3",
61-
"org.assertj:assertj-core:3.27.3",
61+
"org.assertj:assertj-core:3.27.1",
6262
"org.awaitility:awaitility:4.2.2",
6363
"org.bouncycastle:bcpkix-jdk15on:1.70",
6464
"org.junit-pioneer:junit-pioneer:1.9.1",

0 commit comments

Comments
 (0)