commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [commons-io] mureinik commented on issue #97: IO-628: Migration to JUnit Jupiter
Date Wed, 02 Oct 2019 05:48:31 GMT
mureinik commented on issue #97: IO-628: Migration to JUnit Jupiter
   > Hi @mureinik,
   > Thank you for your update.
   > It seems like in `TailerTest` there should be a cleaner way to tear down tests than
by calling `Thead.interrupt()`. Can `` be used with
or without changes to `Tailer` to clean up tests in a nicer manner?
   > Gary
   @garydgregory The original JUnit 4 test tried doing that in the `tearDown()` method, which
is wrong (since it's called after the temp dir deletion is attempted). Note this isn't new
to JUnit Jupiter - it was too late in JUnit 4 too, but it was pretty harmless there (the deletion
failed, and just silently left junk on the filesystem, whereas in Jupiter it fails the test).
   By using a shared temp directory, we can delay the deletion till after the end of the entire
class, and won't have to try something dirty like explicitly interrupting the thread, which
would be arguably cleaner. I've updated the PR with this approach..

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.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message