summaryrefslogtreecommitdiff
path: root/test/other
diff options
context:
space:
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()