test: fixed helper function to delete test directory

This commit is contained in:
Folke Lemaitre 2023-01-07 22:52:49 +01:00
parent d34c85d580
commit ad00eb1be2
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 8 additions and 7 deletions

View file

@ -23,7 +23,7 @@ function M.fs_create(files)
end
function M.fs_rm(dir)
dir = Util.norm(M.fs_root .. dir)
dir = Util.norm(M.fs_root .. "/" .. dir)
Util.walk(dir, function(path, _, type)
if type == "directory" then
vim.loop.fs_rmdir(path)