From 638d44ded8f6ea20965ee32f1897d766b6e1e913 Mon Sep 17 00:00:00 2001 From: Vlad <52591095+MeanderingProgrammer@users.noreply.github.com> Date: Sun, 12 Oct 2025 11:09:37 -0700 Subject: [PATCH] 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. --- test/functional/shada/buffers_spec.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/test/functional/shada/buffers_spec.lua b/test/functional/shada/buffers_spec.lua index 779aa8fc36..259dddea67 100644 --- 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')