mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Merge pull request #3255 from mbenson/open-files
* gh-3255: Ignore failures when closing war files in tests
This commit is contained in:
commit
2b13736ae8
@ -99,6 +99,13 @@ public class WarPackagingTests {
|
|||||||
checkWebInfLibProvidedEntries(war, expectedLibProvidedEntries);
|
checkWebInfLibProvidedEntries(war, expectedLibProvidedEntries);
|
||||||
|
|
||||||
checkWebInfLibEntries(war, expectedLibProvidedEntries);
|
checkWebInfLibEntries(war, expectedLibProvidedEntries);
|
||||||
|
|
||||||
|
try {
|
||||||
|
war.close();
|
||||||
|
}
|
||||||
|
catch (IOException ex) {
|
||||||
|
// Ignore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkWebInfLibProvidedEntries(JarFile war, Set<String> expectedEntries)
|
private void checkWebInfLibProvidedEntries(JarFile war, Set<String> expectedEntries)
|
||||||
|
Loading…
Reference in New Issue
Block a user