Skip to content

Commit 95eeb34

Browse files
Copilottrask
andcommitted
Fix flaky test by increasing timeout for shouldCaptureFunctionTimer
Co-authored-by: trask <[email protected]>
1 parent 5313895 commit 95eeb34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

256256
// then
257-
await().until(() -> getLastMeasurement("test-function-timer") != null);
257+
await().atMost(Duration.ofSeconds(15)).until(() -> getLastMeasurement("test-function-timer") != null);
258258

259259
AgentTestingMicrometerDelegate.Measurement measurement =
260260
getLastMeasurement("test-function-timer");

0 commit comments

Comments
 (0)