mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 14:58:18 +00:00
test: fix dependencies between test cases
Discovered using --shuffle argument of busted.
(cherry picked from commit f273a5a529
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
5c26f463bb
commit
1d9ef90115
@@ -19,21 +19,14 @@ describe('vim.secure', function()
|
||||
local xstate = 'Xstate'
|
||||
|
||||
setup(function()
|
||||
clear{env={XDG_STATE_HOME=xstate}}
|
||||
helpers.mkdir_p(xstate .. pathsep .. (is_os('win') and 'nvim-data' or 'nvim'))
|
||||
end)
|
||||
|
||||
teardown(function()
|
||||
helpers.rmdir(xstate)
|
||||
end)
|
||||
|
||||
before_each(function()
|
||||
helpers.write_file('Xfile', [[
|
||||
let g:foobar = 42
|
||||
]])
|
||||
clear{env={XDG_STATE_HOME=xstate}}
|
||||
end)
|
||||
|
||||
after_each(function()
|
||||
teardown(function()
|
||||
os.remove('Xfile')
|
||||
helpers.rmdir(xstate)
|
||||
end)
|
||||
@@ -175,6 +168,7 @@ describe('vim.secure', function()
|
||||
local xstate = 'Xstate'
|
||||
|
||||
setup(function()
|
||||
clear{env={XDG_STATE_HOME=xstate}}
|
||||
helpers.mkdir_p(xstate .. pathsep .. (is_os('win') and 'nvim-data' or 'nvim'))
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user