janhoy commented on code in PR #2099:
URL: https://github.com/apache/solr/pull/2099#discussion_r1415674962
##########
solr/modules/jwt-auth/src/test/org/apache/solr/security/jwt/JWTAuthPluginIntegrationTest.java:
##########
@@ -116,6 +122,12 @@ public static void afterClass() throws Exception {
if (mockOAuth2Server != null) {
mockOAuth2Server.shutdown();
}
+ if (tempDir != null) {
+ Files.walk(tempDir)
+ .sorted(Comparator.reverseOrder())
+ .map(Path::toFile)
+ .forEach(java.io.File::delete);
Review Comment:
I pushed the simplification using `deleteOnExit`. We use it lots of other
places. If there is indeed some issue with it, feel free to revert.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]