summaryrefslogtreecommitdiff
path: root/test.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-07-19 15:55:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-07-19 15:55:30 +0800
commit0108cc7c485a2885976d33e2da9419b97223e66e (patch)
tree09bba6d187a1d1a0967e6ac201718c7b194b56bd /test.lua
parent38beb846ea216dbca75174692f142fb215d9f896 (diff)
downloadlua-language-server-0108cc7c485a2885976d33e2da9419b97223e66e.zip
cleanup test codes
Diffstat (limited to 'test.lua')
-rw-r--r--test.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/test.lua b/test.lua
index 9e596e88..6b3bc16d 100644
--- a/test.lua
+++ b/test.lua
@@ -82,12 +82,14 @@ local function main()
--log.print = true
- TESTURI = furi.encode('/unittest.lua')
+ TESTROOT = ROOT:string() .. '/test_root/'
+ TESTROOTURI = furi.encode(TESTROOT)
+ TESTURI = furi.encode(TESTROOT .. 'unittest.lua')
---@async
lclient():start(function (client)
client:registerFakers()
- local rootUri = furi.encode '/'
+ local rootUri = furi.encode(TESTROOT)
client:initialize {
rootUri = rootUri,
}