mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 22:21:59 +00:00
The MCP unit tests wrote their files into one folder per process under the temp dir (vectorcraft-mcp-test-<pid>, vectorcraft-mcp-fileio-<pid>, testkit's mcp-cancel folder) and nothing removed them. The export-as and links tests removed their folder at the end, so a failing test left it. Each test that writes files now holds a TempFolder, a folder of its own that starts empty and is removed with everything in it when the test ends, also when it panics, as the findfiles tests' Tree guard does (crates/engine/src/cmd/findfiles/tests.rs:49). A new test checks that a leftover folder is emptied and that the folder is removed on drop and after a panic.