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:
Marco Hinz 2015-07-20 22:17:22 +02:00
parent 0f34b256aa
commit 2b2cea38a9

View File

@ -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()