mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-27 12:39:03 +00:00
Add startup time metrics
See gh-27878
This commit is contained in:
+2
-1
@@ -16,6 +16,7 @@
|
||||
|
||||
package org.springframework.boot.devtools.restart;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
@@ -110,7 +111,7 @@ class RestartApplicationListenerTests {
|
||||
listener.onApplicationEvent(new ApplicationFailedEvent(application, ARGS, context, new RuntimeException()));
|
||||
}
|
||||
else {
|
||||
listener.onApplicationEvent(new ApplicationReadyEvent(application, ARGS, context));
|
||||
listener.onApplicationEvent(new ApplicationReadyEvent(application, ARGS, context, Duration.ZERO));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user