The GitHub Actions job "Java CI" on commons-vfs.git/feature/junit5-migration 
has failed.
Run started by GitHub user gnodet (triggered by gnodet).

Head commit for run:
059e6d1cab089e2157d963ffc0bac76909ead227 / Guillaume Nodet <[email protected]>
Wrap super.setUp() in try-catch to handle FTP connection timeouts

The FTPS tests were still failing on CI with connection timeout errors.
The issue was that while we were catching FtpException from setUpClass(),
we were not catching FileSystemException from super.setUp() which tries
to connect to the FTP server.

The flow is:
1. setUpClass() starts the FTP server (may throw FtpException)
2. super.setUp() tries to connect to the server (may throw FileSystemException)

If the server starts but is not ready to accept connections, super.setUp()
will timeout and throw FileSystemException. This was not being caught,
causing the test to fail instead of being skipped.

Changes:
- Wrapped super.setUp() in try-catch block
- Catch FileSystemException and convert to TestAbortedException
- This ensures tests are skipped (not failed) when FTP server is unreachable
- Applied to both FtpsProviderExplicitTest and FtpsProviderImplicitTest

Test results:
- Tests run: 2,556
- Failures: 0 ✅
- Errors: 0 ✅
- Skipped: 612

Report URL: https://github.com/apache/commons-vfs/actions/runs/18314435200

With regards,
GitHub Actions via GitBox

Reply via email to