Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure FileAppenderFactoryTest works within its temporary directories #3692

Merged
merged 2 commits into from
Feb 7, 2021

Conversation

rhowe
Copy link
Contributor

@rhowe rhowe commented Feb 7, 2021

Ensure these tests use the temporary directory provided by JUnit for their log files.

Stop the appender before finishing the test so that open file handles won't upset Windows.

Slip in a couple of cleanups whilst we're here.

Ensure these tests use the temporary directory provided by JUnit for their log
files.

Stop the appender before finishing the test so that open file handles won't
upset Windows.
@rhowe rhowe force-pushed the fix-fileappenderfactorytest branch from a533674 to 6e52571 Compare February 7, 2021 11:52
Remove unnecessary exception declarations and switch to using
assertThatExceptionOfType
@arteam arteam merged commit c740abf into dropwizard:master Feb 7, 2021
@arteam
Copy link
Member

arteam commented Feb 7, 2021

Amazing, thank you!

@rhowe rhowe deleted the fix-fileappenderfactorytest branch February 7, 2021 16:50
joschi pushed a commit that referenced this pull request Feb 12, 2021
…#3692)

* Ensure FileAppenderFactoryTest works within its temporary directories

Ensure these tests use the temporary directory provided by JUnit for their log
files.

Stop the appender before finishing the test so that open file handles won't
upset Windows.

* Do some small cleanups to dropwizard-logging FileAppenderFactoryTest

Remove unnecessary exception declarations and switch to using
assertThatExceptionOfType

(cherry picked from commit c740abf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants