mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '3.2.x'
This commit is contained in:
+11
-2
@@ -317,8 +317,17 @@ class BootBuildImageIntegrationTests {
|
||||
Path launchCachePath = Paths.get(tempDir, "junit-image-cache-" + projectName + "-launch");
|
||||
assertThat(buildCachePath).exists().isDirectory();
|
||||
assertThat(launchCachePath).exists().isDirectory();
|
||||
FileSystemUtils.deleteRecursively(buildCachePath);
|
||||
FileSystemUtils.deleteRecursively(launchCachePath);
|
||||
cleanupCache(buildCachePath);
|
||||
cleanupCache(launchCachePath);
|
||||
}
|
||||
|
||||
private static void cleanupCache(Path buildCachePath) {
|
||||
try {
|
||||
FileSystemUtils.deleteRecursively(buildCachePath);
|
||||
}
|
||||
catch (Exception ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@TestTemplate
|
||||
|
||||
+11
-2
@@ -419,11 +419,20 @@ class BuildImageTests extends AbstractArchiveIntegrationTests {
|
||||
Path launchCachePath = Paths.get(tempDir, "junit-image-cache-" + testBuildId + "-launch");
|
||||
assertThat(buildCachePath).exists().isDirectory();
|
||||
assertThat(launchCachePath).exists().isDirectory();
|
||||
FileSystemUtils.deleteRecursively(buildCachePath);
|
||||
FileSystemUtils.deleteRecursively(launchCachePath);
|
||||
cleanupCache(buildCachePath);
|
||||
cleanupCache(launchCachePath);
|
||||
});
|
||||
}
|
||||
|
||||
private static void cleanupCache(Path buildCachePath) {
|
||||
try {
|
||||
FileSystemUtils.deleteRecursively(buildCachePath);
|
||||
}
|
||||
catch (Exception ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@TestTemplate
|
||||
void whenBuildImageIsInvokedWithCreatedDate(MavenBuild mavenBuild) {
|
||||
String testBuildId = randomString();
|
||||
|
||||
Reference in New Issue
Block a user