Skip to content

Commit f334566

Browse files
authored
Increase sleep time to avoid exemplar sampling rate limiting for openMetricsScrapeWithExemplars() (#5908)
Signed-off-by: Johnny Lim <[email protected]>
1 parent 9e4dfbf commit f334566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

implementations/micrometer-registry-prometheus/src/test/java/io/micrometer/prometheusmetrics/PrometheusMeterRegistryTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ void openMetricsScrapeWithExemplars() throws InterruptedException {
943943
}
944944

945945
private static void sleepToAvoidRateLimiting() throws InterruptedException {
946-
Thread.sleep(10); // sleeping since the sample interval limit is 1ms
946+
Thread.sleep(100); // sleeping since the sample interval limit is 1ms
947947
}
948948

949949
@Test

0 commit comments

Comments
 (0)