-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
Describe the bug
The test_mount_unmount_zfs_file_system() integration test does not perform teardown actions if an assertion fails. The unmount and delete calls are placed at the very end of the test method, making them unreachable code if any prior assertion (like checking the file list) fails.
Expected and actual results
Expected: The test should automatically unmount and delete the ZFS file system regardless of whether the test passes or fails, ensuring a clean environment for the next run.
Actual: When the test fails mid-execution, the ZFS file system remains mounted on the host, preventing further run of test_mount_unmount_zfs_file_system() to pass
Describe your environment
Additional context
I have a PR ready for this issue.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Progress