aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-27 15:51:44 +0800
committerGitHub <noreply@github.com>2023-04-27 15:51:44 +0800
commitd321deb4a9b05e9d81b79ac166274f4a6e7981bf (patch)
tree195446b3e2668a53edb44e93223905b9939073d6 /test/functional/plugin
parentd1bb9bffd5e86d30696969e001af3c3db8ed4bcf (diff)
downloadrneovim-d321deb4a9b05e9d81b79ac166274f4a6e7981bf.tar.gz
rneovim-d321deb4a9b05e9d81b79ac166274f4a6e7981bf.tar.bz2
rneovim-d321deb4a9b05e9d81b79ac166274f4a6e7981bf.zip
test: fix dependencies between test cases (#23343)
Discovered using --shuffle argument of busted.
Diffstat (limited to 'test/functional/plugin')
-rw-r--r--test/functional/plugin/shada_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/plugin/shada_spec.lua b/test/functional/plugin/shada_spec.lua
index 93cf6d2b77..f6145a5809 100644
--- a/test/functional/plugin/shada_spec.lua
+++ b/test/functional/plugin/shada_spec.lua
@@ -2150,6 +2150,7 @@ describe('plugin/shada.vim', function()
teardown(function()
os.remove(fname)
+ os.remove(fname .. '.tst')
os.remove(fname_tmp)
end)
@@ -2419,6 +2420,9 @@ describe('plugin/shada.vim', function()
it('event SourceCmd', function()
reset(fname)
+ finally(function()
+ nvim_command('set shadafile=NONE') -- Avoid writing shada file on exit
+ end)
wshada('\004\000\006\146\000\196\002ab')
wshada_tmp('\004\001\006\146\000\196\002bc')
eq(0, exc_exec('source ' .. fname))