Skip to content

Commit 388e3a9

Browse files
Copilottrask
andcommitted
Revert timeout fix for shouldCaptureFunctionTimer test for stress testing
Co-authored-by: trask <[email protected]>
1 parent 02dfdeb commit 388e3a9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

agent/instrumentation/micrometer-1.0/src/test/java/MicrometerTest.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,7 @@ void shouldCaptureFunctionTimer() {
254254
.register(registry);
255255

256256
// then
257-
// Use a robust polling strategy for step-based metric publication:
258-
// - Poll every 100ms to catch measurements quickly
259-
// - Allow up to 15 seconds to account for potential CI load delays
260-
// - This provides sufficient time for 2-3 step publication cycles even under load
261-
await()
262-
.pollInterval(Duration.ofMillis(100))
263-
.atMost(Duration.ofSeconds(15))
264-
.until(() -> getLastMeasurement("test-function-timer") != null);
257+
await().until(() -> getLastMeasurement("test-function-timer") != null);
265258

266259
AgentTestingMicrometerDelegate.Measurement measurement =
267260
getLastMeasurement("test-function-timer");

0 commit comments

Comments
 (0)