Skip to content

Commit 461f64a

Browse files
committed
use write mode
1 parent 29ba37c commit 461f64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/other/filewatch.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fw.update()
3131
assert(#events == 1)
3232
assert(events[1][1] == 'change')
3333

34-
local f <close> = io.open((path / 'test.txt'):string(), 'a')
34+
local f <close> = io.open((path / 'test.txt'):string(), 'w')
3535
assert(f)
3636
f:write('xxx')
3737
f:flush()

0 commit comments

Comments
 (0)