Add startup time metrics

See gh-27878
This commit is contained in:
bono007
2021-09-05 21:05:50 -05:00
committed by Stephane Nicoll
parent 32cfde074f
commit 2e67963bfe
20 changed files with 601 additions and 30 deletions

View File

@@ -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));
}
}