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.
This commit is contained in:
Javier Lopez 2022-05-28 12:34:18 -05:00 committed by GitHub
parent c43e2874c0
commit f914b4e7a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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