Skip to content

Commit 06537ce

Browse files
committed
Increase wait duration in PushMeterRegistryTest.closeRespectsInterrupt()
Signed-off-by: Johnny Lim <[email protected]>
1 parent f3f6788 commit 06537ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micrometer-core/src/test/java/io/micrometer/core/instrument/push/PushMeterRegistryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void closeRespectsInterrupt() throws InterruptedException {
243243
Thread closeThread = new Thread(registry::close, "simulatedShutdownHookThread");
244244
closeThread.start();
245245
// close is blocked (waiting for publish to finish)
246-
await().atMost(config.step())
246+
await().atMost(Duration.ofMillis(100))
247247
.pollInterval(1, MILLISECONDS)
248248
.untilAsserted(() -> assertThat(closeThread.getState()).isEqualTo(Thread.State.WAITING));
249249

0 commit comments

Comments
 (0)