diff options
Diffstat (limited to 'test/crossfile/diagnostic.lua')
-rw-r--r-- | test/crossfile/diagnostic.lua | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/crossfile/diagnostic.lua b/test/crossfile/diagnostic.lua index c2d043f4..ab2c3e41 100644 --- a/test/crossfile/diagnostic.lua +++ b/test/crossfile/diagnostic.lua @@ -5,8 +5,8 @@ local config = require 'config' local platform = require 'bee.platform' local catch = require 'catch' -config.get 'Lua.diagnostics.neededFileStatus'['deprecated'] = 'Any' -config.get 'Lua.diagnostics.neededFileStatus'['type-check'] = 'Any' +config.get(nil, 'Lua.diagnostics.neededFileStatus')['deprecated'] = 'Any' +config.get(nil, 'Lua.diagnostics.neededFileStatus')['type-check'] = 'Any' rawset(_G, 'TEST', true) @@ -31,8 +31,6 @@ end ---@diagnostic disable: await-in-sync function TEST(datas) - files.removeAll() - local targetList = {} for _, data in ipairs(datas) do local uri = furi.encode(data.path) @@ -48,6 +46,13 @@ function TEST(datas) files.setText(uri, newScript) end + local _ <close> = function () + for _, info in ipairs(datas) do + files.remove(furi.encode(info.path)) + end + end + + local result = {} for _, data in ipairs(datas) do local uri = furi.encode(data.path) |