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:
Vlad
2025-10-12 11:09:37 -07:00
committed by GitHub
parent c9b74f8b7e
commit 638d44ded8

View File

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