commit 638d44ded8f6ea20965ee32f1897d766b6e1e913
parent c9b74f8b7e3813763d2ada6a4b3ea75ba8960cd8
Author: Vlad <52591095+MeanderingProgrammer@users.noreply.github.com>
Date: Sun, 12 Oct 2025 11:09:37 -0700
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.
Diffstat:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/test/functional/shada/buffers_spec.lua b/test/functional/shada/buffers_spec.lua
@@ -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')