diff --git a/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingScheduledExecutorServiceTest.java b/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingScheduledExecutorServiceTest.java index 47a6c9f51..11324f366 100644 --- a/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingScheduledExecutorServiceTest.java +++ b/microsphere-java-core/src/test/java/io/microsphere/concurrent/DelegatingScheduledExecutorServiceTest.java @@ -8,6 +8,7 @@ import java.util.concurrent.ScheduledExecutorService; import static io.microsphere.collection.Lists.ofList; +import static java.util.concurrent.TimeUnit.DAYS; import static java.util.concurrent.Executors.newSingleThreadScheduledExecutor; import static java.util.concurrent.TimeUnit.MILLISECONDS; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -92,6 +93,10 @@ void test() throws Throwable { log("execute"); }); + instance.schedule(() -> { + log("delayed schedule"); + }, 1, DAYS); + // test shutdownNow assertFalse(instance.shutdownNow().isEmpty());