File tree 4 files changed +3
-27
lines changed
agent/instrumentation/micrometer-1.0/src/test/java
4 files changed +3
-27
lines changed Original file line number Diff line number Diff line change 22
22
import java .util .concurrent .ExecutorService ;
23
23
import java .util .concurrent .Executors ;
24
24
import java .util .stream .Collectors ;
25
+ import org .junit .jupiter .api .Disabled ;
25
26
import org .junit .jupiter .api .Test ;
26
27
27
28
class MicrometerTest {
28
29
29
- private static final long SLEEP_MILLISECONDS = 1000 ;
30
+ private static final long SLEEP_MILLISECONDS = 6000 ;
30
31
31
32
private static final AgentTestingMicrometerDelegate delegate =
32
33
new AgentTestingMicrometerDelegate ();
@@ -91,6 +92,7 @@ void shouldCaptureGauge() throws InterruptedException {
91
92
assertThat (measurement .namespace ).isNull ();
92
93
}
93
94
95
+ @ Disabled
94
96
@ Test
95
97
void shouldCaptureCounter () throws InterruptedException {
96
98
// given
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ dependencies {
30
30
implementation(" com.diffplug.spotless:spotless-plugin-gradle:6.25.0" )
31
31
implementation(" com.github.spotbugs.snom:spotbugs-gradle-plugin:6.0.25" )
32
32
implementation(" com.github.johnrengelman:shadow:8.1.1" )
33
- implementation(" com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.18.1" )
34
33
35
34
implementation(" org.owasp:dependency-check-gradle:10.0.4" )
36
35
Original file line number Diff line number Diff line change 1
- import com.gradle.enterprise.gradleplugin.testretry.retry
2
1
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
3
2
import java.time.Duration
4
3
@@ -114,13 +113,6 @@ tasks.withType<Test>().configureEach {
114
113
// This value is quite big because with lower values (3 mins) we were experiencing large number of false positives
115
114
timeout.set(Duration .ofMinutes(15 ))
116
115
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
-
124
116
reports {
125
117
junitXml.isOutputPerTestCase = true
126
118
}
Original file line number Diff line number Diff line change @@ -9,30 +9,13 @@ pluginManagement {
9
9
}
10
10
}
11
11
12
- plugins {
13
- id(" com.gradle.enterprise" ) version " 3.18.1"
14
- }
15
-
16
12
dependencyResolutionManagement {
17
13
repositories {
18
14
mavenCentral()
19
15
mavenLocal()
20
16
}
21
17
}
22
18
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
-
36
19
rootProject.name = " ApplicationInsights-Java"
37
20
38
21
val 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