diff options
Diffstat (limited to 'test/crossfile/completion.lua')
-rw-r--r-- | test/crossfile/completion.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua index c608ccab..d286a24d 100644 --- a/test/crossfile/completion.lua +++ b/test/crossfile/completion.lua @@ -82,8 +82,6 @@ end ---@diagnostic disable: await-in-sync function TEST(data) - files.removeAll() - local mainUri local pos for _, info in ipairs(data) do @@ -98,6 +96,12 @@ function TEST(data) files.setText(uri, script) end + local _ <close> = function () + for _, info in ipairs(data) do + files.remove(furi.encode(info.path)) + end + end + local expect = data.completion core.clearCache() local result = core.completion(mainUri, pos, '') |