summaryrefslogtreecommitdiff
path: root/test/other
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-04-17 15:55:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2024-04-17 15:55:00 +0800
commite7e57325d4d929df3652c5caaec2edbe471e9157 (patch)
tree7110c5c373e37afe4367e608083f5bd0ac2b4cec /test/other
parentfe20694bfbf81961be705107cfc9765fac090c0e (diff)
downloadlua-language-server-e7e57325d4d929df3652c5caaec2edbe471e9157.zip
thread.sleep 改成毫秒
Diffstat (limited to 'test/other')
-rw-r--r--test/other/filewatch.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/other/filewatch.lua b/test/other/filewatch.lua
index f5d5a03d..e751c715 100644
--- a/test/other/filewatch.lua
+++ b/test/other/filewatch.lua
@@ -17,7 +17,7 @@ fw.event(function (ev, filename)
events[#events+1] = {ev, filename}
end)
-thread.sleep(1)
+thread.sleep(1000)
events = {}
fw.update()
assert(#events == 1)
@@ -25,7 +25,7 @@ assert(events[1][1] == 'create')
fsu.saveFile(path / 'test.txt', 'modify')
-thread.sleep(1)
+thread.sleep(1000)
events = {}
fw.update()
assert(#events == 1)
@@ -37,7 +37,7 @@ f:write('xxx')
f:flush()
f:close()
-thread.sleep(1)
+thread.sleep(1000)
events = {}
fw.update()
assert(#events == 1)