diff options
author | Javier Lopez <graulopezjavier@gmail.com> | 2022-05-28 12:34:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-28 10:34:18 -0700 |
commit | f914b4e7a864bb67c26765c02d6ab10346d2135a (patch) | |
tree | cee20766667d439c8e4f723a3e6706caaf9e1fdc | |
parent | c43e2874c083d66a563f262f7fb7d7ec84bce814 (diff) | |
download | rneovim-f914b4e7a864bb67c26765c02d6ab10346d2135a.tar.gz rneovim-f914b4e7a864bb67c26765c02d6ab10346d2135a.tar.bz2 rneovim-f914b4e7a864bb67c26765c02d6ab10346d2135a.zip |
test: fixeol cleanup created files #18785
The async nature of feed_command caused a race condition on the calls
to delete, leaving the files on the root of the repo. Just use os.remove
and no need to wipeout.
-rw-r--r-- | test/functional/legacy/fixeol_spec.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/functional/legacy/fixeol_spec.lua b/test/functional/legacy/fixeol_spec.lua index d3ff86d349..3cc9d54e2b 100644 --- a/test/functional/legacy/fixeol_spec.lua +++ b/test/functional/legacy/fixeol_spec.lua @@ -6,12 +6,11 @@ local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers describe('fixeol', function() local function rmtestfiles() - feed_command('%bwipeout!') - feed_command('call delete("test.out")') - feed_command('call delete("XXEol")') - feed_command('call delete("XXNoEol")') - feed_command('call delete("XXTestEol")') - feed_command('call delete("XXTestNoEol")') + os.remove("test.out") + os.remove("XXEol") + os.remove("XXNoEol") + os.remove("XXTestEol") + os.remove("XXTestNoEol") end setup(function() clear() |