test: replace lfs with luv and vim.fs

test: replace lfs with luv

luv already pretty much does everything lfs does, so this duplication
of dependencies isn't needed.
This commit is contained in:
dundargoc
2023-04-04 21:59:06 +02:00
committed by GitHub
parent b1de4820b7
commit 743860de40
41 changed files with 273 additions and 256 deletions

View File

@@ -1,6 +1,6 @@
-- Test suite for testing interactions with API bindings
local helpers = require('test.functional.helpers')(after_each)
local lfs = require('lfs')
local luv = require('luv')
local command = helpers.command
local meths = helpers.meths
@@ -754,7 +754,8 @@ describe('lua: nvim_buf_attach on_bytes', function()
write_file("Xtest-reload", dedent [[
old line 1
old line 2]])
lfs.touch("Xtest-reload", os.time() - 10)
local atime = os.time() - 10
luv.fs_utime("Xtest-reload", atime, atime)
command "e Xtest-reload"
command "set autoread"