hevinhsu opened a new pull request, #10275: URL: https://github.com/apache/ozone/pull/10275
# What changes were proposed in this pull request? Refactor `TestContainerDataYaml` to use JUnit 5 `@TempDir` for temporary file management. Previously, the test relied on a shared static test directory created via `FileSystemTestHelper#getTestRootDir()` and manually cleaned it up using `FileUtil.fullyDelete(...)`. This change replaces the manual lifecycle management with `@TempDir`, so each test gets an isolated temporary directory and the framework automatically handles cleanup after test execution. This removes shared state between tests and makes cleanup more reliable when assertions fail or unexpected exceptions occur. This ensures cleanup always happens while keeping test behavior isolated and deterministic. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-15277 ## How was this patch tested? https://github.com/hevinhsu/ozone/actions/runs/25904967962 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
