mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Test: fix functional/ex_cmds/recover_spec.lua
os.remove() wasn't removing the temporary swap directory which leads to problems when the test is run a second time. That's also the reason why the CI never caught this. os.remove() got replaced by helpers.rmdir().
This commit is contained in:
parent
0f34b256aa
commit
2b2cea38a9
@ -20,11 +20,11 @@ describe(':preserve', function()
|
||||
local swapdir = lfs.currentdir()..'/testdir_recover_spec'
|
||||
before_each(function()
|
||||
clear()
|
||||
os.remove(swapdir)
|
||||
helpers.rmdir(swapdir)
|
||||
lfs.mkdir(swapdir)
|
||||
end)
|
||||
after_each(function()
|
||||
os.remove(swapdir)
|
||||
helpers.rmdir(swapdir)
|
||||
end)
|
||||
|
||||
it("saves to custom 'directory' and (R)ecovers (issue #1836)", function()
|
||||
|
Loading…
Reference in New Issue
Block a user