File tree Expand file tree Collapse file tree 4 files changed +3
-27
lines changed
agent/instrumentation/micrometer-1.0/src/test/java Expand file tree Collapse file tree 4 files changed +3
-27
lines changed Original file line number Diff line number Diff line change 2222import java .util .concurrent .ExecutorService ;
2323import java .util .concurrent .Executors ;
2424import java .util .stream .Collectors ;
25+ import org .junit .jupiter .api .Disabled ;
2526import org .junit .jupiter .api .Test ;
2627
2728class MicrometerTest {
2829
29- private static final long SLEEP_MILLISECONDS = 1000 ;
30+ private static final long SLEEP_MILLISECONDS = 6000 ;
3031
3132 private static final AgentTestingMicrometerDelegate delegate =
3233 new AgentTestingMicrometerDelegate ();
@@ -91,6 +92,7 @@ void shouldCaptureGauge() throws InterruptedException {
9192 assertThat (measurement .namespace ).isNull ();
9293 }
9394
95+ @ Disabled
9496 @ Test
9597 void shouldCaptureCounter () throws InterruptedException {
9698 // given
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ dependencies {
3030 implementation(" com.diffplug.spotless:spotless-plugin-gradle:6.25.0" )
3131 implementation(" com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.25" )
3232 implementation(" com.github.johnrengelman:shadow:8.1.1" )
33- implementation(" com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.18.1" )
3433
3534 implementation(" org.owasp:dependency-check-gradle:10.0.4" )
3635
Original file line number Diff line number Diff line change 1- import com.gradle.enterprise.gradleplugin.testretry.retry
21import org.gradle.api.tasks.testing.logging.TestExceptionFormat
32import java.time.Duration
43
@@ -114,13 +113,6 @@ tasks.withType<Test>().configureEach {
114113 // This value is quite big because with lower values (3 mins) we were experiencing large number of false positives
115114 timeout.set(Duration .ofMinutes(15 ))
116115
117- retry {
118- // You can see tests that were retried by this mechanism in the collected test reports and build scans.
119- if (System .getenv().containsKey(" CI" )) {
120- maxRetries.set(5 )
121- }
122- }
123-
124116 reports {
125117 junitXml.isOutputPerTestCase = true
126118 }
Original file line number Diff line number Diff line change @@ -9,30 +9,13 @@ pluginManagement {
99 }
1010}
1111
12- plugins {
13- id(" com.gradle.enterprise" ) version " 3.18.1"
14- }
15-
1612dependencyResolutionManagement {
1713 repositories {
1814 mavenCentral()
1915 mavenLocal()
2016 }
2117}
2218
23- val isCI = System .getenv(" CI" ) != null
24- gradleEnterprise {
25- buildScan {
26- termsOfServiceUrl = " https://gradle.com/terms-of-service"
27- termsOfServiceAgree = " yes"
28-
29- if (isCI) {
30- publishAlways()
31- tag(" CI" )
32- }
33- }
34- }
35-
3619rootProject.name = " ApplicationInsights-Java"
3720
3821val buildNative = System .getProperty(" ai.etw.native.build" ) != null && Os .isFamily(Os .FAMILY_WINDOWS )
You can’t perform that action at this time.
0 commit comments