summaryrefslogtreecommitdiff
path: root/test/crossfile/references.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile/references.lua')
-rw-r--r--test/crossfile/references.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua
index cd7689ed..18e9c5f9 100644
--- a/test/crossfile/references.lua
+++ b/test/crossfile/references.lua
@@ -53,8 +53,6 @@ local function founded(targets, results)
end
function TEST(datas)
- files.removeAll()
-
local targetList = {}
local sourceList
local sourceUri
@@ -77,6 +75,12 @@ 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 sourcePos = (sourceList[1][1] + sourceList[1][2]) // 2
local positions = core(sourceUri, sourcePos)
if positions then