mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
c43e2874c0
commit
f914b4e7a8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user