summaryrefslogtreecommitdiff
path: root/test/other
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-23 21:03:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-23 21:03:18 +0800
commit461f64acc47ff90f072e48e4391ace2e81c3ab8e (patch)
tree52b5eb7fac3c5eaf40342e8159bb4bb04872c931 /test/other
parent29ba37ce3cadb85448773988d961fec4bc44c14e (diff)
downloadlua-language-server-461f64acc47ff90f072e48e4391ace2e81c3ab8e.zip
use write mode
Diffstat (limited to 'test/other')
-rw-r--r--test/other/filewatch.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/other/filewatch.lua b/test/other/filewatch.lua
index 59c5812d..0a9bdabf 100644
--- a/test/other/filewatch.lua
+++ b/test/other/filewatch.lua
@@ -31,7 +31,7 @@ fw.update()
assert(#events == 1)
assert(events[1][1] == 'change')
-local f <close> = io.open((path / 'test.txt'):string(), 'a')
+local f <close> = io.open((path / 'test.txt'):string(), 'w')
assert(f)
f:write('xxx')
f:flush()