mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Ignore failures when closing war files in tests
Update WarPackagingTests to ignore any IOExceptions when closing created war files. Exceptions were sometimes thrown when running on a Linux NTFS mount. Fixes gh-3255
This commit is contained in:
parent
1e40bff174
commit
38e935ee5e
@ -99,6 +99,13 @@ public class WarPackagingTests {
|
||||
checkWebInfLibProvidedEntries(war, expectedLibProvidedEntries);
|
||||
|
||||
checkWebInfLibEntries(war, expectedLibProvidedEntries);
|
||||
|
||||
try {
|
||||
war.close();
|
||||
}
|
||||
catch (IOException ex) {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
|
||||
private void checkWebInfLibProvidedEntries(JarFile war, Set<String> expectedEntries)
|
||||
|
Loading…
Reference in New Issue
Block a user