garydgregory commented on code in PR #663:
URL: https://github.com/apache/commons-vfs/pull/663#discussion_r1956169522
##########
commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/test/JunctionTests.java:
##########
@@ -141,6 +141,9 @@ public void testEvent() throws Exception {
final FileObject real2 = baseDir.resolveFile("weakref.txt");
real2.createFile();
assertEquals("Weak Listener was abandoned", "Listener false true
false", listener2.toString());
+
+ // Make sure we don't contaminate the fs for the next time the test
runs
+ assertTrue(file2.delete());
Review Comment:
Hi @raboof
If you want this to happen 100% of the time, as opposed to not if an
assertion fails, you must put it in a `finally` block.
--
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]