You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2025/02/07 13:35:00 UTC

[jira] [Commented] (VFS-856) test failure: check that change events from delegated files are fired

    [ https://issues.apache.org/jira/browse/VFS-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924889#comment-17924889 ] 

Gary D. Gregory commented on VFS-856:
-------------------------------------

On Windows 10, I need to be in a console with admin rights to run code that creates symbolic links. Could this be related to access rights? Maybe the test is not cleaning up after itself.

> test failure: check that change events from delegated files are fired
> ---------------------------------------------------------------------
>
>                 Key: VFS-856
>                 URL: https://issues.apache.org/jira/browse/VFS-856
>             Project: Commons VFS
>          Issue Type: Improvement
>            Reporter: Arnout Engelen
>            Priority: Minor
>
> when doing for example 'mvn install':
> {code:java}
> [ERROR] Failures: 
> [ERROR]   VirtualProviderTestCase>AbstractProviderTestCase.runTest:293 Weak Listener was abandoned expected:<Listener false [tru]e false> but was:<Listener false [fals]e false>
> [INFO] 
> [ERROR] Tests run: 3281, Failures: 1, Errors: 0, Skipped: 9 
> {code}
> This is from the test that "Checks that change events from delegated files are fired." in JunctionTests - apparently the 'created' event did not trigger.
> Adding a 'assertFalse("Test file should not exist yet", file2.exists());' just after 'resolveFile' fails, so I suppose this is because 'createFile' does nothing when the file already exists. That makes sense I guess. Is the test ran twice? Should that work in the first place?
> This is on Linux in a bwrap, not sure what else is special about my setup.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)