add rollback tests and update test descriptions #3
Reference in New Issue
Block a user
Delete Branch "test/fail-write-and-rollback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
writeUnitFileson errorstesting/mock.tsdependency indeno.lockThis change adds comprehensive tests for the
writeUnitFilesfunction to verify that files are properly rolled back if errors occur during their creation. The tests simulate failures when writing.serviceor.timerfiles, as well as when file deletion is blocked, and check that the function responds by cleaning up as expected or logging rollback failures. All test comments and descriptions have been updated to English for clarity. Thetesting/mock.tsdependency was added to enable function stubbing in tests.#2
2882cc33aatoe5f9f2c45a