commit 8df682250768be9a07f855bb89ada665b7626413
parent b4599acbf8e30aa1234bc4041546f960dcc3a238
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 31 Oct 2024 08:04:51 +0800
test: fix files being left behind (#31004)
Diffstat:
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/test/functional/core/log_spec.lua b/test/functional/core/log_spec.lua
@@ -15,6 +15,7 @@ describe('log', function()
after_each(function()
expect_exit(command, 'qa!')
+ vim.uv.sleep(10) -- Wait for Nvim to fully exit
os.remove(testlog)
end)
diff --git a/test/functional/legacy/074_global_var_in_viminfo_spec.lua b/test/functional/legacy/074_global_var_in_viminfo_spec.lua
@@ -150,5 +150,7 @@ describe('storing global variables in ShaDa files', function()
teardown(function()
os.remove(tempname)
+ command('set shadafile=NONE')
+ os.remove('Xviminfo')
end)
end)
diff --git a/test/functional/legacy/078_swapfile_recover_spec.lua b/test/functional/legacy/078_swapfile_recover_spec.lua
@@ -45,7 +45,7 @@ describe('78', function()
silent recover Xtest
call delete(g:swapname)
- new
+ noswapfile new
call append(0, 'recovery start')
wincmd w