exceptionfactory commented on pull request #5794:
URL: https://github.com/apache/nifi/pull/5794#issuecomment-1051278540
@MikeThomsen, for `TestJdbcCommon`, it looks like the Derby shutdown
operation deregisters the driver, causing the exceptions. Adding a explicit
line in the setup method to register the Derby EmbeddedDriver allowed all
methods to work:
```
DriverManager.registerDriver(new EmbeddedDriver());
```
Alternatively, removing the shutdown call in the cleanup method, but
retaining the recursive delete seems like an acceptable solution:
```
@AfterEach
public void cleanup() throws IOException {
if (tempFile.exists()) {
FileUtils.deleteFile(tempFile, true);
}
}
```
--
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]