diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2015-07-20 22:17:22 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2015-07-20 22:19:16 +0200 |
commit | 2b2cea38a9822c7f8ac88f33099252bd0378b9ba (patch) | |
tree | b9e34ca2c4d8bd196903f1e3ae875b2acc89e940 | |
parent | 0f34b256aa4c87ed7211275614618e741912a6ec (diff) | |
download | rneovim-2b2cea38a9822c7f8ac88f33099252bd0378b9ba.tar.gz rneovim-2b2cea38a9822c7f8ac88f33099252bd0378b9ba.tar.bz2 rneovim-2b2cea38a9822c7f8ac88f33099252bd0378b9ba.zip |
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().
-rw-r--r-- | test/functional/ex_cmds/recover_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/ex_cmds/recover_spec.lua b/test/functional/ex_cmds/recover_spec.lua index d4c9477133..b92739e40e 100644 --- a/test/functional/ex_cmds/recover_spec.lua +++ b/test/functional/ex_cmds/recover_spec.lua @@ -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() |