mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 06:46:07 +00:00
test(shada/buffers_spec): cleanup output file #36154
Problem As part of https://github.com/neovim/neovim/pull/34373 a unit test was added that executes the `write` command. This causes a file to be created named `Xtestfile-functional-shada-buffers-2`. In general tests should cleanup resources they create. Solution Remove the call to `write`, test functions correctly without it.
This commit is contained in:
@@ -98,7 +98,6 @@ describe('shada support code', function()
|
||||
nvim_command('setlocal nobuflisted')
|
||||
nvim_command('edit ' .. testfilename_2)
|
||||
nvim_command('setlocal buflisted')
|
||||
nvim_command('write')
|
||||
expect_exit(nvim_command, 'qall')
|
||||
reset("set shada='100")
|
||||
local oldfiles = api.nvim_get_vvar('oldfiles')
|
||||
|
Reference in New Issue
Block a user