diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-12-22 22:17:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 22:17:01 +0800 |
commit | b2d984558bfa66439c784eed66b35868c771e085 (patch) | |
tree | 3f46b2567c0935cca024741c1fbba634230a4028 /test/unit/buffer_spec.lua | |
parent | 843ad837c656fd46739dfb4b7c6a17cfda7978a5 (diff) | |
download | rneovim-b2d984558bfa66439c784eed66b35868c771e085.tar.gz rneovim-b2d984558bfa66439c784eed66b35868c771e085.tar.bz2 rneovim-b2d984558bfa66439c784eed66b35868c771e085.zip |
test(unit): use file:close() properly (#21505)
Diffstat (limited to 'test/unit/buffer_spec.lua')
-rw-r--r-- | test/unit/buffer_spec.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/buffer_spec.lua b/test/unit/buffer_spec.lua index 2611e7ca7c..4f8a27de09 100644 --- a/test/unit/buffer_spec.lua +++ b/test/unit/buffer_spec.lua @@ -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() |