https://github.com/spring-projects/spring-boot/blob/1be8c8fda94d9ee97d16644be0940cfd94a91482/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/OnInitializedRestarterConditionTests.java#L66-L89
If TestInitialized
's main method fails for some reason, it won't call wait.notify()
and wait.wait()
in the initialized
test method will then never end.