test(unit): use file:close() properly (#21505)

This commit is contained in:
zeertzjq
2022-12-22 22:17:01 +08:00
committed by GitHub
parent 843ad837c6
commit b2d984558b
3 changed files with 9 additions and 9 deletions

View File

@@ -28,9 +28,9 @@ describe('buffer functions', function()
setup(function()
-- create the files
io.open(path1, 'w').close()
io.open(path2, 'w').close()
io.open(path3, 'w').close()
io.open(path1, 'w'):close()
io.open(path2, 'w'):close()
io.open(path3, 'w'):close()
end)
teardown(function()